Retrieve the dimensions of a matrix or array.
Arguments
- x
A matrix, array, or data.frame.
See also
dim.
Examples
m <- mat("1, 3, 5; 7, 9, 11")
size(m)
#> [1] 2 3
Retrieve the dimensions of a matrix or array.
A matrix, array, or data.frame.
dim.
m <- mat("1, 3, 5; 7, 9, 11")
size(m)
#> [1] 2 3