Re: [R] Partially reading a file (particularly)

2007-05-31 Thread Tobin, Jared
: Tobin, Jared; r-help@stat.math.ethz.ch Subject: Re: [R] Partially reading a file (particularly) On 5/29/07, Charles C. Berry [EMAIL PROTECTED] wrote: On windows XP we can also use findstr which comes with Windows: res - read.fwf( pipe( findstr /b 5 my.file ) , other args

Re: [R] Partially reading a file (particularly)

2007-05-31 Thread Gabor Grothendieck
research assistant dept. of fisheries and oceans [EMAIL PROTECTED] -Original Message- From: Gabor Grothendieck [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 29, 2007 10:51 PM To: Charles C. Berry Cc: Tobin, Jared; r-help@stat.math.ethz.ch Subject: Re: [R] Partially reading a file

Re: [R] Partially reading a file (particularly)

2007-05-31 Thread Tobin, Jared
: Gabor Grothendieck [mailto:[EMAIL PROTECTED] Sent: Thursday, May 31, 2007 10:46 AM To: Tobin, Jared Cc: r-help@stat.math.ethz.ch Subject: Re: [R] Partially reading a file (particularly) Try this: con - pipe(findstr /b 5 myfile.dat) open(con, r) DF - read.fwf(con, widths = c(1, 1, 2)) # replace

[R] Partially reading a file (particularly)

2007-05-29 Thread Tobin, Jared
Hello, I am trying to figure out if there exists some R command that allows one to be particularly selective when reading a file. I'm dealing with large fixed-width data sets that look like 539001.. 639001.. 639001.. ... 539002.. 639002.. ... Presently, I am using read.fwf to read an entire

Re: [R] Partially reading a file (particularly)

2007-05-29 Thread Charles C. Berry
On Tue, 29 May 2007, Tobin, Jared wrote: Hello, I am trying to figure out if there exists some R command that allows one to be particularly selective when reading a file. I'm dealing with large fixed-width data sets that look like 539001.. 639001.. 639001.. ... 539002.. 639002..

Re: [R] Partially reading a file (particularly)

2007-05-29 Thread Gabor Grothendieck
On 5/29/07, Charles C. Berry [EMAIL PROTECTED] wrote: On Tue, 29 May 2007, Tobin, Jared wrote: Hello, I am trying to figure out if there exists some R command that allows one to be particularly selective when reading a file. I'm dealing with large fixed-width data sets that look