labelled_to_factors {tntpr} | R Documentation |
labelled
-class columns to factors.Deprecated. Use the as_factor()
function from the haven
package instead for the same functionality.
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)
labels_df |
a data.frame containing some columns of class labelled |
Returns a data.frame, the same size as labels_df
tntpr::fake_county |>
haven::as_factor()