search for: deoxya

Displaying 1 result from an estimated 1 matches for "deoxya".

Did you mean: deconya
2009 Nov 19
1
name of a name
I have quite a complicated problem that's hard to describe. Suppose I have a dataframe d. I want to access the vector d$var, where var is one of the variables in d. Just take for granted that there's a good reason I want to do this as follows. var<-"DeOxyA" xx<-paste("d$",var, sep="") mean(xx) [1] NA Warning message: In mean.default(xx) : argument is not numeric or logical: returning NA > mean(d$DeOxyA) [1] 21.98904 How can I convert xx so I can do mean(xx), for example? Currently xx is a character, not a variable. as...