Learn R Programming

assertthat (version 0.2.1)

not_empty: Check an object doesn't have any empty dimensions

Description

Check an object doesn't have any empty dimensions

Usage

not_empty(x)

Arguments

x

object to test

See Also

Other assertions: are_equal, is.error, is.scalar, noNA

Examples

Run this code
# NOT RUN {
not_empty(numeric())
not_empty(mtcars[0, ])
not_empty(mtcars[, 0])
# }

Run the code above in your browser using DataLab