is_empty: Is an empty object.

View source: R/utils.R

is_emptyR Documentation

Is an empty object.

Description

Check if an object is empty.

Usage

is_empty(x)

Arguments

x

(any) The object to be checked.

Value

A logical value indicating if the object is empty.

Examples

## Not run: 
is_empty(1:10) # FALSE
is_empty(1:0) # TRUE
is_empty(NULL) # TRUE
is_empty(c()) # TRUE
is_empty(character()) # TRUE
is_empty(data.frame()) # TRUE

## End(Not run)


brandon-mosqueda/SKM documentation built on Feb. 8, 2025, 5:24 p.m.