
Conversion to Factors with Explicit Missing Level in a data.frame
Source: R/utils.R
h_df_factors_with_explicit_na.Rd
This helper function converts all character and logical variables
to factor variables in a data.frame
. It also sets an explicit missing data level
for all factor variables that have at least one NA
. Empty strings are handled
as NA
.