Assert$isMatrix {R.utils} | R Documentation |
Static method asserting thatan object is a matrix.
## Static method (use this): ## Assert$isMatrix(x, nrow=NULL, ncol=NULL, ...) ## Don't use the below: ## S3 method for class 'Assert' isMatrix(static, x, nrow=NULL, ncol=NULL, ...)
x |
Object to be checked. |
nrow |
Required number of rows. If |
ncol |
Required number of columns. If |
... |
Not used. |
Returns (invisibly) TRUE
, or throws an exception.
Henrik Bengtsson
For more information see Assert
.