| assert_is_qr {assertive.types} | R Documentation |
Checks to see if the input is a QR decomposition of a matrix.
assert_is_qr(x, severity = getOption("assertive.severity", "stop"))
is_qr(x, .xname = get_name_in_parent(x))
x |
Input to check. |
severity |
How severe should the consequences of the assertion be?
Either |
.xname |
Not intended to be used directly. |
is_qr wraps is.qr, providing more
information on failure. assert_is_qr returns nothing but
throws an error if is_qr returns FALSE.
assert_is_qr(qr(matrix(rnorm(25), nrow = 5)))