ind2arr.ind | R Documentation |
Transforms vector indexes to array indexes. The function is cloned from the function which().
ind2arr.ind(ind, shape = NULL, perm = NULL, ...)
ind |
The index(es) to be transformed to array indexes. |
shape |
The dimension of the array. |
perm |
The permutation i. e. the order of the dimensions along which the indexes given in 'ind' are organized. If 'shape' is 2:4 and 'perm' is c(3,1,2), the indexes in 'ind' are first organized along the third dimension, then along the first, and finally along the second dimension of a matrix of dimensions 2:4. |
... |
Used for robustness. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.