logical_to_labelled | R Documentation |
Values in logical columns are converted from TRUE
/FALSE
to
1
/2
, with labels 'Yes'/'No'.
logical_to_labelled(df, selected_cols = NULL)
df |
data frame |
selected_cols |
character. A vector of selected column names to convert to labelled numeric. These should all be of type logical. |
A data frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.