Number of Elements
Number of elements in a vector, matrix, or array.
numel(x)
x |
a vector, matrix, array or list |
the number of elements of a
.
numel(c(1:12)) numel(matrix(1:12, 3, 4))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.