Converts a matrix of coordinates to an array of coordinates

Share:

Description

Converts a matrix arranged with the individuals (the 3rd dimension of the array) as rows, and (all) x coordinates and (all) y coordinates as columns, into an array built as follows: nb.of.landmarks x 2 (x; y) x nb.of.individuals.

Usage

1
m2a(m)

Arguments

m

a matrix (see above).

Details

Used in landmarks methods.

Value

an array (see above).

See Also

a2m the reverse function.

Other bridges functions: a2l, a2m, as_df, l2a, l2m, m2d, m2ll, m2l

Examples

1
2
3
data(wings)
m <- a2m(l2a(wings$coo))
m2a(m)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.