assert_square: Check Matrix

View source: R/assert.R

assert_squareR Documentation

Check Matrix

Description

Check Matrix

Usage

assert_square(x)

assert_symmetric(x)

Arguments

x

A matrix to be checked.

Value

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

Author(s)

N. Frerebeau

See Also

Other validation methods: assert_constant(), assert_data, assert_length(), assert_lower(), assert_names(), assert_numeric, assert_package(), assert_type(), validate()


tesselle/arkhe documentation built on Feb. 22, 2024, 8:18 p.m.