array.to.xxyy {prWarp} | R Documentation |
Convert a three-dimensional array of landmark coordinates into a two-dimensional matrix
array.to.xxyy(A)
A |
A 3D array (p x k x n) containing landmark coordinates for a set of specimens |
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.
A <- array(rnorm(40), c(5, 2, 4)) # random 2D coordinates of 5 landmarks for 4 specimens
array.to.xxyy(A)