xxyy.to.array: Convert landmark data matrix into array (p x k x n)
Description
Convert a matrix of landmark coordinates into a three-dimensional array
Usage
xxyy.to.array(M, p, k = 2)
Value
Function returns a 3D array (p x k x n),
where p is the number of landmark points,
k is the number of landmark dimensions (2 or 3),
and n is the number of specimens.
The third dimension of this array contains names for each specimen
if specified in the original input matrix.
Arguments
M
A matrix of dimension n x [p x k] containing landmark coordinates for a set of specimens.
Each row contains all landmark coordinates for a single specimen.
The first columns correspond to the X coordinates for all landmarks, etc.