R/labelled.R
logical_to_labelled.Rd
Values in logical columns are converted from TRUE
/FALSE
to
1
/2
, with labels 'Yes'/'No'.
logical_to_labelled(df, selected_cols = NULL)
data frame
character. A vector of selected column names to convert to labelled numeric. These should all be of type logical.
A data frame