Re: [R] can i use a variable to describe the dimension name of a data.frame?

2011-08-17 Thread David Winsemius
On Aug 18, 2011, at 1:36 AM, Jie TANG wrote: for example: a data.frame data V1 V2 V3 1 2 3 4 5 6 If I want to calculate the V2 I can get data$V2 But now I want to calculate the dimension name and then analysis the data. for example No=3*x ;x=1,2,3,...n anadata=data$VNo How

[R] can i use a variable to describe the dimension name of a data.frame?

2011-08-17 Thread Jie TANG
for example: a data.frame data V1 V2 V3 1 2 3 4 5 6 If I want to calculate the V2 I can get data$V2 But now I want to calculate the dimension name and then analysis the data. for example No=3*x ;x=1,2,3,...n anadata=data$VNo How could I do? -- TANG Jie [[alterna