Displaying 1 result from an estimated 1 matches for "levelslist".
2011 Feb 09
2
assign factor levels based on list
All,
Given a data frame and a list containing factor definitions for certain columns, how can I apply those definitions from the list, rather than doing it the standard way, as noted below. I'm lost in the world of do.call, assign, paste, and can't find my way through. For example:
#set up df
y <- data.frame(colOne = c(1,2,3), colTwo =