whichInd | R Documentation |
Find the raw indices for given indices in array form.
whichInd(arr.ind, dims)
arr.ind |
"matrix or vector" When it is a matrix, the length of columns should be the as the length of the "dims". When it is a vector, the argument length should be the same as the length of "dims". |
dims |
"vector" The dimension of the array. Note that the last dimension is not needed in the calculations, so if you may just write "NA" there. |
This is exactly the inverse function of ‘arrayInd()’.
"vector" The raw indices.
Created: Wed Mar 14 18:03:01 CET 2012; Current: Wed Mar 14 18:03:09 CET 2012.
Feng Li, Department of Statistics, Stockholm University, Sweden.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.