Generate a data frame of all factor data
This function is mainly intended for example code and unit
testing. It generates a data.frame
containing all factor data.
GenerateFactorData(factor.levels.list, sample.size)
factor.levels.list |
A list of character vectors giving factor level names. The names attribute of this list becomes the set of variables names for the return data frame. |
sample.size |
The desired number of rows in the returned data frame. |
Steven L. Scott steve.the.bayesian@gmail.com
foo <- GenerateFactorData(list(a = c("foo", "bar", "baz"), b = c("larry", "moe", "curly", "shemp")), 50) head(foo) # a b # 1 bar curly # 2 foo curly # 3 bar moe # 4 bar moe # 5 baz curly # 6 bar curly
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.