[R] Selecting columns of a table (not consecutive)

George Papayiannis gpapayia at yahoo.com
Mon Oct 3 00:19:03 CEST 2005


Hi everyone,

I have a table with 10 columns and many rows.
I want to select the 3rd,4th and 10th column.

If I wanted to select the 3rd and 4th it would be no
problem.

q3[ ,(3:4)]

but how do I select the 10th along with it?

Thanks for your help,
George

p.s Please respond if you know, assignment is due
tomorrow...

Thanks again..




More information about the R-help mailing list