Re: [R] Selecting several columns/rows of a dataframe?

2013-05-01 Thread Joel Prokopchuk
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 : > Hello, > > Try > > corpus.df[, c("mph", "mgl", "eng")] > > > Hope this helps

[R] Selecting several columns/rows of a dataframe?

2013-05-01 Thread Joel Prokopchuk
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 Proko