[R] Selecting several columns/rows of a dataframe?
Joel Prokopchuk
joelproko at gmail.com
Wed May 1 22:56:53 CEST 2013
Thanks everyone. I had looked in the documentation (just in the wrong
places,apparently) and googled, but I couldn't find this.
2013/5/1 Rui Barradas <ruipbarradas at sapo.pt>:
> Hello,
>
> Try
>
> corpus.df[, c("mph", "mgl", "eng")]
>
>
> Hope this helps,
>
> Rui Barradas
>
> Em 01-05-2013 21:04, Joel Prokopchuk escreveu:
>>
>> Sorry, the use of rows/columns I found so far was rather
>> contradictive, both refering to what can be gotten via subset()
>> instead of what I'm looking for.
>> Is there a way to get multiple colums/rows? Something like
>> corpus.df${mph,mgl,eng}
>> Thanks in advance for any answers.
>> --
>> Joel Prokopchuk
>>
>> ______________________________________________
>> 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.
>>
>
--
Joel Prokopchuk
Zeltweg 18
8032 Zürich
+41 76/45'100'46
More information about the R-help
mailing list