Learn R Programming

favr (version 1.0.0)

are_empty: Are objects empty vectors or NULL?

Description

Are objects empty vectors or NULL?

Usage

are_empty(..., .all = FALSE)

Value

Named logical, or unnamed boolean if .all is TRUE.

Arguments

...

Objects to be tested.

.all

Whether to return if all arguments are TRUE.

See Also

Examples

Run this code
x <- 1
y <- NULL
z <- list()

are_empty(x, y, z, NULL)

are_empty(x, y, z, NULL, .all = TRUE)

are_empty(list(NULL))

Run the code above in your browser using DataLab