Description Usage Arguments Value Examples
Standardize levels of factor variables.
1 | update_levels(data, levels_union)
|
data |
Dataset to standardize |
levels_union |
Named list. Names should be variable names, values should be character vectors. |
data
with variables in levels_union
converted to factors with levels specified in levels_union
1 | update_levels(d, list(var1=c("a","b","c"), var2=c("x","y")))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.