Change NAs in a factor into a category
Extract all the missing values in a factor variable and turn them into a separate category.
NAtoCategory(fact, label = "missing")
Label to be given to the missing valus.
Updated factor variable.
1 2 3 4
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.