Hi what about
some.data <- read.table(....)[ ,1:2] Regards Petr r-help-boun...@r-project.org napsal dne 08.04.2010 16:05:39: > Hi everyone, > > I've got a matrix data with 20 variables (V1, V2, V3, ...) and 215 > rows (observations). I'm interested to read only the first and second > variables using "read.table" function. How can I do? > > Thanks in advance. > > Paolo. > > ______________________________________________ > 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. ______________________________________________ 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.