
Last chance! 50% off unlimited learning
Sale ends in
Return a logical vector indicating if elements of a character vector are blank (white spaces or empty strings).
is_blank(x)
TRUE
for blank elements, or FALSE
otherwise.
A character vector.
xfun::is_blank("")
xfun::is_blank("abc")
xfun::is_blank(c("", " ", "\n\t"))
xfun::is_blank(c("", " ", "abc"))
Run the code above in your browser using DataLab