Skip to content
Prev 181907 / 398502 Next

How to set a filter during reading tables

One can use colClasses to set which columns get read in. For the
columns you don't
want you can set those to NULL. For example,

cc <- c("NULL",rep("numeric",9))

myData <- read.table("myFile.txt",header=TRUE,colClasses=cc,nrow=numRows).
On Wed, May 27, 2009 at 12:27 PM, <guox at ucalgary.ca> wrote: