powered by
Used to swap in "" for by variables so the headers sort correctly to the top
replace_na_with_blank(x)
x with NA's replaced with "". Factors will add "" as the first level.
variable to check for NA and replace with "".
replace_na_with_blank(c("a", "b", NA)) replace_na_with_blank(factor(c("a", "b", NA), levels = c("a", "b")))
Run the code above in your browser using DataLab