ind2arr.ind: Transforms vector indexes to array indexes. The function is...

View source: R/ind2arr.ind.R

ind2arr.indR Documentation

Transforms vector indexes to array indexes. The function is cloned from the function which().

Description

Transforms vector indexes to array indexes. The function is cloned from the function which().

Usage

ind2arr.ind(ind, shape = NULL, perm = NULL, ...)

Arguments

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.


arnejohannesholmin/TSD documentation built on April 14, 2024, 5:29 a.m.