Convert 3D array into matrix

convert_array_to_matrix(x)

Arguments

x

A three-dimensional array (p x k x n) of landmark coordinates

Value

Returns two-dimensional matrix with n rows and p x k columns. If input has labels, these will be preserved.

Examples

data("LondonSet_aligned") data_matrix <- convert_array_to_matrix(LondonSet_aligned)