Displaying 20 results from an estimated 9000 matches similar to: "Slow 'read.table' in R 1.4.0 (PR#1232)"
2002 Feb 22
1
Summary: read.table on Mac OS X, CARBON vs. DARWIN
Thanks a lot, James!!
The problem is fixed. On the version 1.4.0 Mac/darwin (the latest
available version for this system) the function read.table (which is
called from read.delim etc., too) has the bug you explained.
Inserting the row
nlines <- nlines+1
after
lines <- c(lines, line)
removes this bug.
M.
On Friday, February 22, 2002, at 02:33 PM, james.holtman at convergys.com
2003 Nov 05
1
read.table leaves out data when reading multiple-line records (PR#4955)
Dear all,
I discovered that read.table (RW1.8.0) leaves out data when reading
multiple-line records.
Replication code at the end
Best regards
Jens Oehlschlägel
> filename <- "c:/tmp/c2.csv"
>
> data <- data.frame(a=c("c", "e\nnewline"), b=c("d", '"quoted
simpleline"'))
>
> #look at the data
>
2008 Jun 11
1
read.table() causes segfault with incorrect data (PR#11627)
Full_Name: Juho Vuori
Version: 2.7.0 (2008-04-22)
OS: Linux poseidon.fimr.fi 2.6.23.17-88.fc7PAE #1 SMP Thu May 15 00:22:53 EDT 2008 i686 i686 i386 GNU/Linux
Submission from: (NULL) (193.166.188.194)
Calling read.table() twice the following way causes a segmentation fault in R.
Run R and type the following commands:
> read.table(stdin())
0: 1 2 3
1: 3
2:
Error in scan(file, what, nmax, sep,
2002 Jan 08
2
installing R-1.3.1 on Solaris 2.6
Hi All,
I am trying to install R1.3.1 on solaris 2.6 using the gcc/g77 compiler.
The configure step succeeded, but make failed. The compiler versions I used
are:
gcc version 2.95.2 19991024 (release)
g77 version 2.95.2 19991024 (release)
CC workshop Compilers 5.0 98/12/15 C++ 5.0
I can't use the c++ compiler(v2.95.2), since it failed the configure step. I
can't use f77 either,
2008 Aug 29
1
scan after seek in text files (PR#12640)
Full_Name: Dr. Alex Sheppard
Version: 2.7.1
OS: Linux Debian Lenny
Submission from: (NULL) (79.73.224.62)
After scanning from an open (text) connection, then seeking, then scanning
again, the second scan returns incorrect result. It looks like the first byte
scanned was from the pre-seek file position, then it continues to read from the
post-seek file position.
To reproduce:
#Put 3x3 matrix
2005 Mar 11
0
read.table messes up stdin upon small, erroneous input (PR#7722)
Full_Name: Jan T. Kim
Version: 2.0.1, devel-2005-02-24
OS: Linux 2.6.x
Submission from: (NULL) (139.222.3.229)
Run read.table(stdin()) and type in the broken table
1 2
1
terminating the input by pressing Ctrl-D at the 3rd line of input. An error
message by scan, complaining that "line 2 did not have 2 elements" appears,
as expected. However: After this, there are three empty lines
2002 Jun 21
1
textConnection appears to be slow
I was trying to read in a file and delete lines that did not have the
correct
number of fields on them. I was reading the file as one character vector
per line
using 'scan' with sep='\n'. I was then using 'count.fields' with
'textConnection' to the object I just read in.
I thought at first the system was locked up, but further testing showed
that the
2002 Jan 23
1
R on Tru64 5.1
Hi,
R-1.4.0 on ES40 under OSF 5.1.
I use gcc version 3.0.3
During gnu make I have the message :
dumping R code in package `methods'
Error in dyn.load(x, as.logical(local), as.logical(now)) :
unable to load shared
library"/usr/local/R1.4.0/library/methods/libs/methods.so":
dlopen: /usr/local/R-1.4.0/library/ctest/libs/ctest.so: symbol "dansari"
unresolved
Execution
2003 Oct 16
2
Managing memory on R
Hi,
I have a problem with the memory size within R. I would like to know if
there is any may for getting back free memory during a R session. I've tried
with rm and gc but it still craches. I am working on windows R1.3.1.
I know I have big datasets, but during my study, some results are temporary,
and I would like to get back the memory allocated to this temporary object
as soon as I remove
2010 Jul 29
1
[PATCH] Reflow logic to make it easier to follow
The control flow was:
if (!y) {
ppix = ...
}
if (y) {
...
} else if (x) {
use ppix for something
} else {
use ppix for something
}
Merge the if(!y) block with the two else branches. This avoids
a false-positive in the clang static analyzer, it can't know that
!y and x are mutually exclusive.
The result looks something like this:
if (y) {
...
} else {
ppix = ...
if (x) {
2004 Dec 23
2
Get rid of space padding
I'm currently using the below function from some library (MASS?) for
writing my data out to file. I'm using it instead of plain old "write"
because it does buffering. The problem that I'm having is that the
numbers are space padded, but I need true tab-delineated files. It
looks like the spaces are coming from 'format', but I don't see
an option for format to
2008 Nov 18
1
"deparse" with "nlines" argument produces empty elements (PR#13299)
Full_Name: Kamil Barto?
Version: 2.8.0
OS: windows xp
Submission from: (NULL) (212.33.92.187)
According to the "deparse" function documentation "nlines" is the *maximum*
number of lines to produce. But, when "nlines" argument is supplied, it produces
exactly nlines of result, and the result contains empty elements at the end.
Example:
>
2007 May 15
1
Efficiently reading random lines form a large file
I need to read two different random lines at a time from a large
ASCII file (120 x 296976) containing space delimited 0-1 entries.
The following code does the job and it's reasonable fast for my needs:
lineNumber = sample(120, 2)
line1 = scan(filename, what = "integer", skip=lineNumber[1]-1, nlines=1)
line2 = scan(filename, what = "integer",
2009 Sep 12
0
[LLVMdev] [proposal] Extensible IR metadata
On Sep 11, 2009, at 7:17 PM, Nick Lewycky wrote:
> Dan Gohman wrote:
>> On Sep 11, 2009, at 9:57 AM, Chris Lattner wrote:
>>> Devang's work on debug info prompted this, thoughts welcome:
>>> http://nondot.org/sabre/LLVMNotes/ExtensibleMetadata.txt
>> The document mentions "instructions" a lot. We'll want to be able to
>> apply metadata to
2009 Sep 12
1
[LLVMdev] [proposal] Extensible IR metadata
Chris Lattner wrote:
>
> On Sep 11, 2009, at 7:17 PM, Nick Lewycky wrote:
>
>> Dan Gohman wrote:
>>> On Sep 11, 2009, at 9:57 AM, Chris Lattner wrote:
>>>> Devang's work on debug info prompted this, thoughts welcome:
>>>> http://nondot.org/sabre/LLVMNotes/ExtensibleMetadata.txt
>>> The document mentions "instructions" a lot.
2015 Apr 02
1
Next stable release?
Hello,
Are there any chances of next stable release appearing soonish? I'm
getting pushback from Homebrew maintainers about the massive amount of
patching required to build the current stable on Mac, since all the
patches have been merged in after last stable.
(I'm also getting pushback about the 4GB download of virtual
appliance, but as I understand that one is non-optional. Don't
2002 Feb 04
1
read zipped files
I received several answer to my querry re reading zipped files,
R.Gentleman, Liaw Andy, BD Ripley,J Holtman, A.Matt, and others,
sorry
if I missed your names.
a- use pipe to run external unzip to a file and read from there
b- use gzfile() to open directly a gzipped file
c- use zip.file.extract()
solution b works like a charm, unfortunately it open gzipped files
and
not zipped files, would it be
2003 Nov 10
3
Reading an upper triangular matrix
Hola!
I have data in the form of a symmetric distance matrix, in the file I
have recorded only the upper triangular part, with diagonal. The
matrix is 21x21, and the file have row and col names, and some other
information. I am trying to read with the following code (I tried
many variations on it, but all give the same error). The items in the
data file is delimited by white space.
(Part
2002 Jan 23
1
No subject
Dear R People:
Here is a very simple question, please:
I have a data frame with the state name, state division, and population.
Note: state division is something like Atlantic, Mountain, etc.
I want to produce a table with the state division and the total of the
populations for the states within that division.
I've been messing with "table" but so far, no luck.
This is R1.3.1,
2007 Dec 19
1
unexpected behavior from gzfile and unz
I get unexpected behavior from "readLines()" and
"scan()" depending on how the file is opened with
"gzfile" or "unz". More specifically:
> file <- gzfile("file.gz")
> readLines(file,1)
[1] "a\tb\tc"
> readLines(file,1)
[1] "a\tb\tc"
> close(file)
It seems that the stream is rewound between calls to
readLines.