Skip to contents

Check if a vector or data frame is empty

Usage

not_empty(a)

Arguments

a

Object to check

Value

TRUE or FALSE

Examples

not_empty(integer())
#> [1] FALSE
not_empty(list())
#> [1] FALSE
not_empty(1:10)
#> [1] TRUE
not_empty(data.frame())
#> [1] FALSE
not_empty(data.frame(a = 1:10))
#> [1] TRUE