toInd: Converts (x,y,z) coordinates to an array index

Description Usage Arguments Examples

View source: R/indexing.R

Description

Used for getting the flattened index for an array with dimensions x.max x y.max x n, where n is arbitrary.

Usage

1
toInd(x, y, z, x.max, y.max)

Arguments

x

x coordinate, ranges between 1 and x.max

y

y coordinate, ranges between 1 and y.max

z

z coordinate, must be at least 1

x.max

maximum value of x coordinates

y.max

maximum value of y coordinates

Examples

1
toInd(x = 60, y = 13, z = 1, x.max = 100, y.max = 100)

jmhewitt/dsdive documentation built on May 29, 2020, 5:18 p.m.