[R] re ading specific columns

Erik Iverson iverson at biostat.wisc.edu
Fri Oct 3 23:59:22 CEST 2008


What function are you using to read in your data file?

If read.table, then see the help page for that function, specifically 
the colClasses argument "NULL".

Erik

kayj wrote:
> I have a huge txt file and I only want to get out of it  column 3 and 7.
> I tried to read the whole file and then extract the two columns, but I ran
> into a memory problem  since the file is huge. 
> 
> Is it possible just to tell R to read these two columns without reading the
> whole file?
> 
> Thanks
>



More information about the R-help mailing list