Description Usage Arguments Value
The data frame is recoded according to a correspondance table.
The correpondance table contains a least three columns : column
, value
and factor
.
An optional table data_levels contains ordered levels for each column. It contains at least three fields : column
, order
, level
.
1 | recode_factor(data, data_recode, data_levels = NULL, new_vars = FALSE)
|
data |
A data frame. |
data_recode |
A correspondance table containing between character values and unordered level factors. |
data_levels |
An optional correpondance table between column names and ordered levels. |
new_vars |
If |
A recoded data frame.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.