Description Usage Arguments Value
View source: R/refactor_variables.R
Change the levels of a factor to use an explicit list
1 2 3 4 5 | refactor_variable(
this.data,
this.var,
these.levels = c("Yes", "No", "Missing")
)
|
this.data |
The tibble in which the column exists |
this.var |
The column name to refactor |
these.levels |
The new levels for this factor (default = Yes, No, Missing) |
The updated tibble
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.