sub2ind {nat}R Documentation

Find 1D index given n-dimensional indices

Description

Emulates the MATLAB function sub2ind.

Usage

sub2ind(dims, indices)

Arguments

dims

vector of dimensions of object to index into.

indices

vector of n-dimensional indices.


[Package nat version 1.8.24 Index]