| 07-Dimensions | R Documentation |
Returns the number of rows or cols in an MPCR object.
## S4 method for signature 'Rcpp_MPCR'
nrow(x)
## S4 method for signature 'Rcpp_MPCR'
ncol(x)
x |
An MPCR object. |
The number of rows/cols in an MPCR object.
library(MPCR)
x <- as.MPCR(1:16,4,4,"single")
y <- as.MPCR(1:20,4,5,"double")
rows_x <- nrow(x)
cols_y <- ncol(y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.