isMatrix.Assert {R.utils}R Documentation

Static method asserting thatan object is a matrix

Description

Static method asserting thatan object is a matrix.

Usage

Assert$isMatrix(x, nrow=NULL, ncol=NULL, ...)

Arguments

x Object to be checked.
nrow Required number of rows. If NULL, this is not checked.
ncol Required number of columns. If NULL, this is not checked.
... Not used.

Value

Returns (invisibly) TRUE, or throws an exception.

Author(s)

Henrik Bengtsson (http://www.braju.com/R/)

See Also

For more information see Assert.


[Package R.utils version 1.1.7 Index]