Re: [R] Incremental ReadLines

2011-04-17 Thread Frederik Lang
Dunlap Cc: r-help@r-project.org Subject: Re: [R] Incremental ReadLines Hi Bill, Thank you so much for your suggestions. I will try and alter my code. Regarding the even shorter solution outside the loop it looks good but my problem is that not all observations have

Re: [R] Incremental ReadLines

2011-04-14 Thread Freds
Hi there, I am having a similar problem with reading in a large text file with around 550.000 observations with each 10 to 100 lines of description. I am trying to parse it in R but I have troubles with the size of the file. It seems like it is slowing down dramatically at some point. I would be

Re: [R] Incremental ReadLines

2011-04-14 Thread Mike Marchywka
Date: Wed, 13 Apr 2011 10:57:58 -0700 From: frederikl...@gmail.com To: r-help@r-project.org Subject: Re: [R] Incremental ReadLines Hi there, I am having a similar problem with reading in a large text file with around 550.000 observations

Re: [R] Incremental ReadLines

2011-04-14 Thread William Dunlap
-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Freds Sent: Wednesday, April 13, 2011 10:58 AM To: r-help@r-project.org Subject: Re: [R] Incremental ReadLines Hi there, I am having a similar problem with reading in a large text file with around 550.000

Re: [R] Incremental ReadLines

2011-04-14 Thread Frederik Lang
: Re: [R] Incremental ReadLines Hi there, I am having a similar problem with reading in a large text file with around 550.000 observations with each 10 to 100 lines of description. I am trying to parse it in R but I have troubles with the size of the file. It seems like it is slowing

Re: [R] Incremental ReadLines

2011-04-14 Thread Frederik Lang
- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Freds Sent: Wednesday, April 13, 2011 10:58 AM To: r-help@r-project.org Subject: Re: [R] Incremental ReadLines Hi there, I am having a similar problem with reading in a large text file

Re: [R] Incremental ReadLines

2011-04-14 Thread Mike Marchywka
Date: Thu, 14 Apr 2011 11:57:40 -0400 Subject: Re: [R] Incremental ReadLines From: frederikl...@gmail.com To: marchy...@hotmail.com CC: r-help@r-project.org Hi Mike, Thanks for your comment. I must admit that I am very new to R and although

Re: [R] Incremental ReadLines

2011-04-14 Thread William Dunlap
[see below] From: Frederik Lang [mailto:frederikl...@gmail.com] Sent: Thursday, April 14, 2011 12:56 PM To: William Dunlap Cc: r-help@r-project.org Subject: Re: [R] Incremental ReadLines Hi Bill, Thank you so much for your suggestions. I will try and alter my code

Re: [R] Incremental ReadLines

2009-11-05 Thread Jens Oehlschlägel
Gene, You might want to look at function read.csv.ffdf from package ff which can read large csv-files into a ffdf object. That's kind of data.frame which is stored on disk resp. in the file-system-cache. Once you subscript part of it, you get a regular data.frame. Jens Oehlschlägel --

Re: [R] Incremental ReadLines

2009-11-05 Thread Gabor Grothendieck
If the headers all start with the same letter, A say, and the data only contain numbers on their lines then just use read.table(..., comment = A) On Mon, Nov 2, 2009 at 2:03 PM, Gene Leynes gleyne...@gmail.com wrote: I've been trying to figure out how to read in a large file for a few days

[R] Incremental ReadLines

2009-11-02 Thread Gene Leynes
I've been trying to figure out how to read in a large file for a few days now, and after extensive research I'm still not sure what to do. I have a large comma delimited text file that contains 59 fields in each record. There is also a header every 121 records This function works well for

Re: [R] Incremental ReadLines

2009-11-02 Thread Duncan Murdoch
On 11/2/2009 2:03 PM, Gene Leynes wrote: I've been trying to figure out how to read in a large file for a few days now, and after extensive research I'm still not sure what to do. I have a large comma delimited text file that contains 59 fields in each record. There is also a header every 121

Re: [R] Incremental ReadLines

2009-11-02 Thread James W. MacDonald
Hi Gene, Rather than using R to parse this file, have you considered using either grep or sed to pre-process the file and then read it in? It looks like you just want lines starting with numbers, so something like grep '^[0-9]\+' thefile.csv otherfile.csv should be much faster, and then

Re: [R] Incremental ReadLines

2009-11-02 Thread Gene Leynes
James, I think those are Unix commands? I'm on Windows, so that's not an option (for now) Also the suggestions posed by Duncan and Phil seem to be working. Thank you so much, such a simple thing to add the r or rt to the file connection. I read about blocking, but I didn't imagine that it