arr.ind2ind: Transforms array indexes to vector indexes. For indexes out...

View source: R/arr.ind2ind.R

arr.ind2indR Documentation

Transforms array indexes to vector indexes. For indexes out of bounds NA is returned. The function is transformed from the function which().

Description

Transforms array indexes to vector indexes. For indexes out of bounds NA is returned. The function is transformed from the function which().

Usage

arr.ind2ind(arr.ind, shape)

Arguments

arr.ind

is either a list of subscripts, as typed into [], or an array indexes, to be transformed to vector indexes.

shape

is the dimension of the array.


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