[R] Function to return variable name

Jeremy Miles jeremy.miles at gmail.com
Thu Jul 29 05:21:51 CEST 2010


I'd like a function that returns the variable name.

As in:

MyData$Var1

Would return:

Var1

There should be a straightforward way to do this, but I can't see it.

Thanks,

Jeremy



-- 
Jeremy Miles
Psychology Research Methods Wiki: www.researchmethodsinpsychology.com



More information about the R-help mailing list