size {matlab} | R Documentation |
Provides dimensions of X
.
size(X, dimen)
X |
numeric vector or matrix |
dimen |
numeric scalar specifies particular dimension |
This is an S4 generic function.
Invokes base::length
or base::dim
depending on argument X
.
Returns class size_t
containing the dimensions of input argument.
P. Roebuck, roebuck@mdanderson.org
size(1:8) size(matrix(1:8, 2, 4)) size(matrix(1:8, 2, 4), 2)