Learn R Programming

assertive (version 0.2-6)

assert_is_qr: Is the input a QR decomposition of a matrix?

Description

Checks to see if the input is a QR decomposition of a matrix.

Usage

assert_is_qr(x)

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

Arguments

x
Input to check.
.xname
Not intended to be used directly.

Value

  • is_qr wraps is.qr, providing more information on failure. assert_is_qr returns nothing but throws an error if is_qr returns FALSE.

See Also

is.qr.

Examples

Run this code
assert_is_qr(qr(matrix(rnorm(25), nrow = 5)))

Run the code above in your browser using DataLab