whichInd: Raw indices finder for array.

Description Usage Arguments Details Value Note Author(s)

View source: R/others__whichInd.R

Description

Find the raw indices for given indices in array form.

Usage

1
whichInd(arr.ind, dims)

Arguments

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.

Details

This is exactly the inverse function of ‘arrayInd()’.

Value

"vector" The raw indices.

Note

Created: Wed Mar 14 18:03:01 CET 2012; Current: Wed Mar 14 18:03:09 CET 2012.

Author(s)

Feng Li, Department of Statistics, Stockholm University, Sweden.


feng-li/flutils documentation built on Oct. 1, 2020, 9:09 p.m.