Learn R Programming

Momocs (version 1.0.0)

a2m: Converts an array of coordinates to a matrix

Description

All the individuals (the 3rd dimension of the array) becomes rows, and columns are (all the) x coordinates and (all the) y coordinates, so that we have x1, x2, ..., xn, y1, y2, ..., yn columns. Rows and colums are named anyway.

Usage

a2m(a)

Arguments

a
array of (x; y) coordinates.

Value

matrix (see above).

Details

Used in landmarks methods, e.g. for multivariate analysis after a Procrustes alignment.

See Also

m2a the reverse function.

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

Examples

Run this code
data(wings)
a <- l2a(wings$coo)
a

Run the code above in your browser using DataLab