sub2ind: Find 1D index given n-dimensional indices

View source: R/coordinates.R

sub2indR 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.


nat documentation built on May 29, 2024, 10:36 a.m.