assert_dim: Check Object Dimensions

View source: R/assert.R

assert_dimR Documentation

Check Object Dimensions

Description

Check Object Dimensions

Usage

assert_dim(x, expected)

assert_nrow(x, expected)

assert_ncol(x, expected)

Arguments

x

An object to be checked.

expected

An appropriate expected value.

Value

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

Author(s)

N. Frerebeau

See Also

Other checking methods: assert_constant(), assert_empty(), assert_infinite(), assert_length(), assert_lower(), assert_missing(), assert_names(), assert_numeric, assert_package(), assert_square(), assert_type(), assert_unique()


tesselle/arkhe documentation built on Feb. 1, 2025, 9:24 a.m.