whichInd: Raw indices finder for array.

View source: R/whichInd.R

whichIndR Documentation

Raw indices finder for array.

Description

Find the raw indices for given indices in array form.

Usage

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.


thiyangt/fformpp documentation built on Jan. 5, 2024, 5:44 a.m.