check-attribute {arkhe}R Documentation

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)

assert_rownames(x, expected)

assert_colnames(x, expected)

Arguments

x

An object to be checked.

expected

An appropriate expected value.

empty

A logical scalar: should empty objects be ignored?

Value

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

Author(s)

N. Frerebeau

See Also

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


[Package arkhe version 1.0.0 Index]