Values in logical columns are converted from TRUE/FALSE to 1/2, with labels 'Yes'/'No'.

logical_to_labelled(df, selected_cols = NULL)

Arguments

df

data frame

selected_cols

character. A vector of selected column names to convert to labelled numeric. These should all be of type logical.

Value

A data frame