Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

has_dims

Does the input have dimensions?


Description

Checks to see if the input has dimensions.

Usage

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


assertive.properties

Assertions to Check Properties of Variables

v0.0-4
GPL (>= 3)
Authors
Richard Cotton [aut, cre]
Initial release
2016-12-29

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.