powered by
labelled
Deprecated. Use the as_factor() function from the haven package instead for the same functionality.
as_factor()
haven
Takes a data.frame, checks for columns that are class labelled from the haven package, and converts them to factor class.
labelled_to_factors(labels_df)
Returns a data.frame, the same size as labels_df
labels_df
a data.frame containing some columns of class labelled
tntpr::fake_county |> haven::as_factor()
Run the code above in your browser using DataLab