Learn R Programming

arkhe (version 0.5.0)

check-attribute: Check Object Attributes

Description

Check Object Attributes

Usage

assert_empty(x)

assert_filled(x)

assert_length(x, expected, empty = FALSE)

assert_lengths(x, expected)

assert_dimensions(x, expected)

assert_names(x, expected)

assert_dimnames(x, expected)

Value

Throws an error, if any, and returns x invisibly otherwise.

Arguments

x

An object to be checked.

expected

An appropriate expected value.

empty

A logical scalar: should empty objects be ignored?

Author

N. Frerebeau

See Also

Other validation methods: check-data, check-graph, check-matrix, check-numeric, check-type, validate()