: 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
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
: 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
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
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..
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