Learn R Programming

Momocs (version 1.0.0)

m2a: Converts a matrix of coordinates to an array of coordinates

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

m2a(m)

Arguments

m
a matrix (see above).

Value

an array (see above).

Details

Used in landmarks methods.

See Also

a2m the reverse function.

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

Examples

Run this code
data(wings)
m <- a2m(l2a(wings$coo))
m2a(m)

Run the code above in your browser using DataLab