View source: R/labelled_to_factors.R
labelled_to_factors | 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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.