R/aaa.R
is.empty.Rd
Check if vector is empty
is.empty(x)
vector
is.empty(NULL) #> [1] TRUE is.empty(NA) #> [1] TRUE is.empty(c()) #> [1] TRUE is.empty("") #> [1] TRUE is.empty(" ") #> [1] TRUE is.empty(c(" ", " ")) #> [1] TRUE is.empty(list()) #> [1] TRUE is.empty(list(a = "", b = "")) #> [1] TRUE