h_as_factor.Rd
Helper Coercion Function to Factor with explicit missing levels
h_as_factor(x, na_label)
(character
or logical
) input to be turned into factor with explicit missing level.
(character
) the label to encode missing levels.
This function preserves labels.