[R] skipping columns with read.fwf?

Brett A Magill Brett.Magill at slps.org
Fri May 3 18:53:51 CEST 2002


I have a file in fwf.  It is rather large, about 40,000 rows and 40 variables (columns).  I only need about 10 variables form the data set for the analysis at hand.  Unfortunately, these 10 variables are not contiguous in the file, for example, the first is position 1-8, the next position 25-27, then 40.

Is there a way to read the selected varaibles that I need without reading in the entire data set?

Thanks,

Brett    
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list