powered by
This function generates a one-column matrix, containing strings of assignments of the variables in a data frame, to be used with with in plyr, e.g.
with
transformVarNames2(nams)
Variable names, typically colnames applied to a data.frame.
colnames
data.frame
One-column matrix of strings containing the assignments.
# NOT RUN { labpar1 <- rnorm(50) labor.param2 <- rgamma(50, 2, 1) dat <- data.frame(labpar1, labor.param2) transformVarNames2(colnames(dat)) # }
Run the code above in your browser using DataLab