has_dims: Does the input have dimensions?

Description Usage Arguments Value See Also

View source: R/has-dims.R

Description

Checks to see if the input has dimensions.

Usage

1
2
3
assert_has_dims(x, severity = getOption("assertive.severity", "stop"))

has_dims(x, .xname = get_name_in_parent(x))

Arguments

x

Input to check.

severity

How severe should the consequences of the assertion be? Either "stop", "warning", "message", or "none".

.xname

Not intended to be used directly.

Value

has_dims returnsTRUE if dim is non-null. assert_has_dims returns nothing but throws an error if has_dims is not TRUE.

See Also

dim, is_of_dimension.


assertive.properties documentation built on May 29, 2017, 6:12 p.m.

Search within the assertive.properties package
Search all R packages, documentation and source code