[R] Data import
B77S
bps0002 at auburn.edu
Tue Sep 27 21:44:09 CEST 2011
I see what you mean.
Sorry and thanks for pointing that out to me Ben.
bbolker wrote:
>
> B77S <bps0002 <at> auburn.edu> writes:
>
>>
>> I have never used that function, but I know that with read.csv() you can
>> do
>> the following to select only the columns you want:
>>
>> chosen_vars <- read.csv("Workbook1.csv", header=T)[c("variable1",
>> "variable3")]
>>
>
>
> This is not actually selectively importing: it's importing the
> whole thing and *then* selecting the relevant columns.
> If the original poster is trying to avoid importing the whole
> data set because (for example) it's got a gigantic number of
> columns and will be very slow and/or tax their system, then this
> idiom won't help.
>
> Ben Bolker
>
> ______________________________________________
> 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.
>
--
View this message in context: http://r.789695.n4.nabble.com/Data-import-tp3842196p3848802.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list