coor {Irescale}R Documentation

Transforms a x,y position in a cartesian plane into a position in a 1D array.

Description

coor Transforms a x,y position in a cartesian plane into a position in a 1D array.

Usage

coor(i, j, size)

Arguments

i

the value of the row.

j

the value of the column.

size

the maximum between row and columns of the matrix.

Value

an integer value that represents the position in the array.

Examples

pos<-coor(1,1,10)

[Package Irescale version 2.3.0 Index]