fct_recode_helper {tabxplor} | R Documentation |
fct_recode helper to recode multiple variables
Description
fct_recode helper to recode multiple variables
Usage
fct_recode_helper(
.data,
.cols = -where(is.numeric),
.data_out_name,
cat = TRUE
)
Arguments
.data |
The data frame. |
.cols |
<tidy-select> The variables to recode. |
.data_out_name |
The name of the output data frame, if different from the input data frame. |
cat |
By default the result is written in the console if there are less than 6 variables, written in a temporary file and opened otherwise. Set to false to get a data frame with a character variable instead. |
Value
When the number of variables is less than 5, a text in console as a side effect.
With more than 5 variables, a temporary R file. A tibble
with the recode text as a
character variable is returned invisibly (or as main result if cat = TRUE
).
[Package tabxplor version 1.1.3 Index]