Displaying 1 result from an estimated 1 matches for "myplotfun".
Did you mean:
myplotfn
2013 Jan 17
2
Naming an object after another object...can it be done?
Hello R-helpers,
I have run the following line of code:
x<-dat$col
and now I would like to assign names(x) to be "dat$col" (e.g., a character
string equal to the column name that I assigned to x).
What I am trying to do is to assign columns in my dataframe to new objects
called x and y. Then I will use x and y within a new function to make plots
with informative axis labels (e.g.,