is_empty

0th

Percentile

Check whether an object is empty

Check whether an object is empty, e.g. has no sub-elements, is NA, or is the empty string.

Usage
is_empty(x)
Arguments
x

An object.

Aliases
  • is_empty
Examples
# NOT RUN {
is_empty(NA) # TRUE
is_empty("") # TRUE
is_empty(list()) # TRUE
is_empty(list(list())) # TRUE

is_empty(1) # FALSE
is_empty(list(1)) # FALSE
is_empty(list(list(1))) # FALSE

# }
Documentation reproduced from package paws.common, version 0.1.0, License: Apache License (>= 2.0)

Community examples

Looks like there are no examples yet.