Check if vector is empty

is.empty(x)

Arguments

x

vector

Examples

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