ArrayPosition2ArrayCoordinates: Get Array Coordinates From Array Position

Description Usage Arguments Details Value Author(s) Examples

View source: R/ArrayPosition2ArrayCoordinates.R

Description

Simply returns the coordinates for the Nth value in an array.

Usage

1

Arguments

Position

The number of the Nth value in the array (an integer).

ArrayDimensions

A vector of integers giving the dimensions of the array.

Details

Depending on different criteria N tips will produce a specific number of trees.

Value

A vector the same length as ArrayDimensions giving the coordinates.

Author(s)

Graeme T. Lloyd graemetlloyd@gmail.com

Examples

1
2
3
# Get the coordinates of the 17th value in a
# 2 by 4 by 6 array:
ArrayPosition2ArrayCoordinates(17, c(2,4,6))

graemetlloyd/hypRspace documentation built on Aug. 24, 2020, 11:41 a.m.