powered by
fct_explicit_na(f, na_level = "(Missing)")
f1 <- factor(c("a", "a", NA, NA, "a", "b", NA, "c", "a", "c", "b")) table(f1) f2 <- fct_explicit_na(f1) table(f2)
Run the code above in your browser using DataLab