Skip to content

Is object an empty vector or NULL?

Usage

is_empty(x)

Arguments

x

object to test

Examples

is_empty(NULL)
#> [1] TRUE
is_empty(list())
#> [1] TRUE
is_empty(list(NULL))
#> [1] FALSE