array.to.xxyy {prWarp} | R Documentation |
Convert (p x k x n) data array into 2D data matrix
Description
Convert a three-dimensional array of landmark coordinates into a two-dimensional matrix
Usage
array.to.xxyy(A)
Arguments
A |
A 3D array (p x k x n) containing landmark coordinates for a set of specimens |
Value
Function returns a two-dimensional matrix of dimension (n x [p x k]), where rows represent specimens and columns represent variables. The p first columns correspond to X coordinates, etc.
See Also
Examples
A <- array(rnorm(40), c(5, 2, 4)) # random 2D coordinates of 5 landmarks for 4 specimens
array.to.xxyy(A)
[Package prWarp version 1.0.1 Index]