Learn R Programming

container (version 1.0.5)

is_empty: Check if Object is Empty

Description

Check if Object is Empty

Usage

is_empty(x)

# S3 method for Container is_empty(x)

# S3 method for dict.table is_empty(x)

Value

TRUE if object is empty otherwise FALSE.

Arguments

x

any R object.

Examples

Run this code

co = container(1, 2)
is_empty(co)
is_empty(clear(co))

d = dict.table(a = 1:4, b = 4:1)
is_empty(d)
is_empty(clear(d))

Run the code above in your browser using DataLab