[R] Howto access V-base only column in a data frame

Gundala Viswanath gundalav at gmail.com
Fri Jun 20 05:27:42 CEST 2008


Hi,

Suppose I have the following data frame:

 V1 V2 V3 var
1 100 200 400 2.3
2 40.5 1.2  20.3
...

In this example the maximum V column is 3.
In my code there the column  number can be varied.

My question is how can I access data frame
from column V1 up to Vk (some "k" and excluding'var' column)?

- Gundala Viswanath
Jakarta - Indonesia



More information about the R-help mailing list