R/utility.R
replace_na_with_blank.Rd
Used to swap in "" for by variables so the headers sort correctly to the top
replace_na_with_blank(x)
variable to check for NA and replace with "".
x with NA's replaced with "". Factors will add "" as the first level.
replace_na_with_blank(c("a", "b", NA)) #> [1] "a" "b" "" replace_na_with_blank(factor(c("a", "b", NA), levels = c("a", "b"))) #> [1] a b #> Levels: a b