data.frame
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
.
h_df_factors_with_explicit_na(data, na_level = "<Missing>")
(data.frame
)
input data with at least one column.
(string
)
explicit missing level to be used.
The modified data.