Skip to contents

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

N. Frerebeau