point: Get coordinates (i.e., row, column, (layer)) of an element of...

Description Usage Arguments Value See Also

View source: R/point.R

Description

This function is an inverse function to index().

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
point(m, index, ...)

## S3 method for class 'matrix'
point(m, index, ...)

## S3 method for class 'array'
point(m, index, ...)

is.point(m, point)

## S3 method for class 'matrix'
is.point(m, point)

## S3 method for class 'array'
is.point(m, point)

Arguments

m

A matrix or an array whose element coordinates have to be computed

index

The index of the element.

Value

For matrix, it returns a vector of two values (row, column). For array, a vector of three values is returned (row, column, layer).

See Also

index()


beerda/hexmatrix documentation built on May 2, 2021, 4:15 a.m.