Displaying 1 result from an estimated 1 matches for "currentfa".
Did you mean:
currentf
2012 May 19
1
referencing headers to extract components of a data frame
...headers. I'm relatively new to R, but
I've done some programming in various other languages, and have done this
kind of thing before. How is this done in R?
Example code, to demonstrate what I'm attempting to do:
> work_data$i.15.0
[1] 0.03 0.03 0.03 0.02 0.02 0.03 0.02 0.02
> currentFA
[1] "i.15.0"
> work_data$currentFA *this is what I want to do, access my data frame by
calling with header name pulled from elsewhere.
NULL
> curFA <- noquote(currentFA) *tried stripping quotes, still doesn't work
> curFA
[1] i.15.0
> work_data$curFA
NULL
Thanks...