is_empty: Check whether an object is empty

Description Usage Arguments Examples

View source: R/util.R

Description

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

Usage

1

Arguments

x

An object.

Examples

1
2
3
4
5
6
7
8
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

paws.common documentation built on Aug. 8, 2019, 9:02 a.m.