Retrieve the dimensions of a matrix or array.
size(x)
x
A matrix, array, or data frame.
The dimensions of the object.
dim.
dim
m <- mat("1, 3, 5; 7, 9, 11") size(m)