On Sun, May 3, 2009 at 6:36 PM, Wensui Liu <liuwen...@gmail.com> wrote: > Sometimes, it is too costly to read the whole data file into R. > I am looking for solution in scan() and read.Lines() but don't they work.
Try the following (assuming a 3 columns data file): mydata <- read.table(file="myfile",header=T,colClasses=c(NA,"NULL",NA)) "NULL" indicates the column to be omitted. Hope this helps you, Paul ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.