Description Usage Arguments Value Examples
Reduces common factor variables of two datasets to common levels
1 | factor.collapse.levels(data1, data2, vars.list, tag = NA)
|
data1 |
A data frame |
data2 |
Another data frame |
vars.list |
A list of pairs (variable.name,variable.type) such as those produced by |
tag |
(defaults to NA) A value that will replace levels that do not appear in both |
A list of two modified data frames (list(newdata1,newdata2)
)
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.