Skip to content
Prev 179137 / 398506 Next

is there a way to read a specific column from a txt file

On Sun, May 3, 2009 at 6:36 PM, Wensui Liu <liuwensui at gmail.com> wrote:
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