Description Usage Arguments Details Value Examples
Refactor a factor using input lists
1 2 3 4 5 6 7 | refactorer(
data_frame,
column,
level_vector,
label_vector,
other_label = "Unknown"
)
|
data_frame |
The data frame containing the column |
column |
The column to refactor |
level_vector |
The levels in the orignal column |
label_vector |
The labels to apply |
other_label |
The label to use for 'other' values (e.g. unknowns) |
This function allows for quick bulk replacement of the labels of a factor rather than the more complex forcats way...
an updated column
1 2 3 4 | ## Not run:
To add!
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.