Assert$isMatrix

0th

Percentile

Static method asserting that an object is a matrix

Static method asserting that an object is a matrix.

Keywords
methods, internal
Usage
## Static method (use this):
## Assert$isMatrix(x, nrow=NULL, ncol=NULL, ...)

## Don't use the below: # S3 method for Assert isMatrix(static, 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.

See Also

For more information see Assert.

Aliases
  • Assert$isMatrix
  • isMatrix.Assert
  • Assert.isMatrix
  • isMatrix,Assert-method
Documentation reproduced from package R.utils, version 2.8.0, License: LGPL (>= 2.1)

Community examples

Looks like there are no examples yet.