R/removeEmpty.R
removeEmpty.Rd
Remove Empty Elements from Vector
removeEmpty(x)
vector
x with elements for which isNaOrEmpty is
x
isNaOrEmpty
TRUE removed
TRUE
removeEmpty(c(1, NA, 3)) #> [1] 1 3 removeEmpty(c("a", "", "b", NA, "c", " ", "d")) #> [1] "a" "b" "c" "d"