Displaying 1 result from an estimated 1 matches for "coltwo".
Did you mean:
colo
2011 Feb 09
2
assign factor levels based on list
...ing 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 = c("apple","pear","orange"))
factor.defs <- list(colOne = list(name = "colOne",
lvl = c(1,2,3,4,5,6)),
colTwo = list(name = "colTwo",
lvl = c("apple","pear","orange","fig","banana")))
#A s...