Group: | Matrix Manipulation |
Topic: | Sorting and Counting |
See also: | cols rows |
Function: | dim | |
Description: | dim gives the vector of the numbers of the elements in each dimension of an array. |
Usage: | d = dim(x) | |
Input: | ||
x | array | |
Output: | ||
d | vector, containing the numbers of the elements in each dimension |
dim(matrix(2,3,4))
Contents of dim [1,] 2 [2,] 3 [3,] 4