Description Usage Arguments Value Examples
Manually combine levels of categorical data.
1 | rbin_factor_combine(data, var, new_var, new_name)
|
data |
A |
var |
An object of class |
new_var |
A character vector; it should include the names of the levels to be combined. |
new_name |
Name of the combined level. |
A tibble
.
1 2 3 4 5 6 | upper <- c("secondary", "tertiary")
out <- rbin_factor_combine(mbank, education, upper, "upper")
table(out$education)
out <- rbin_factor_combine(mbank, education, c("secondary", "tertiary"), "upper")
table(out$education)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.