[R] Odp: use read.table for a partial reading
Petr PIKAL
petr.pikal at precheza.cz
Thu Apr 8 16:19:20 CEST 2010
Hi
what about
some.data <- read.table(....)[ ,1:2]
Regards
Petr
r-help-bounces at 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 at 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.
More information about the R-help
mailing list