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

Description Usage Arguments Details Value See Also Examples

View source: R/babel-bridges.R

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)

Momocs documentation built on May 30, 2017, 5:23 a.m.

Search within the Momocs package
Search all R packages, documentation and source code