Skip to contents

Is Vector Empty?

Usage

empty(x)

Arguments

x

vector

Value

<logical>

Examples

empty(character(0))
#> [1] TRUE

empty(c())
#> [1] TRUE

empty(NULL)
#> [1] TRUE

empty(NA)
#> [1] FALSE

empty(list())
#> [1] TRUE

empty(list(character(0)))
#> [1] FALSE

empty(list(x = character(0)))
#> [1] FALSE