Dear R users, I have a simple question on variable manipulation. Imagine I have an object "OBJ" that has "toto" as one of its variables. I would like to understand why if I do
> varname <- "toto" >OBJ$varname returns no results whereas > OBJ[varname] returns the column entitled "toto" Thanks for your help. Stéphane. ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
