
Returns the dimension of a LazyMarix Object.
dim-LazyMatrix-method.RdReturns the dimension of a LazyMarix Object.
Usage
# S4 method for class 'LazyMatrix'
dim(x)Value
For an array (and hence in particular, for a matrix) dim retrieves the dim attribute of the object. It is NULL or a vector of mode integer. The replacement method changes the "dim" attribute (provided the new value is compatible) and removes any "dimnames" and "names" attributes.
Examples
mat_a <- base::matrix(rep(1, 6), nrow=2, ncol=3)
lazy_a <- LazyMatrix(mat_a, "sd", "mean")
dim(lazy_a)
#> [1] 2 3