[R] How to import specific column(s) using "read.table"?
F Duan
f.duan at yale.edu
Mon Aug 9 22:32:00 CEST 2004
Dear R people,
I have a very big tab-delim txt file with header and I only want to import
several columns into R. I checked the options for "read.table" and only
found "nrows" which lets you specify the maximum number of rows to read in.
Although I can use some text editors (e.g., wordpad) to edit the txt file first
before running R, I feel its not very convenient. The reason for me to do this
is that if I import the whole file into R, it will eat up too much of my
systems memory. Even after I remove it later, I still cant release the memory.
Anyone has any suggestions?
Thank you very much,
Frank
More information about the R-help
mailing list