Learn R Programming

Momocs (version 1.0.0)

a2l: Converts an array of coordinates to a list of matrices

Description

Converts a m x n x k array of coordinates to a list of k matrices with m rows and n columns matrices.

Usage

a2l(a)

Arguments

a
array of coordinates.

Value

list with 2-cols matrices of (x; y) coordinates.

Details

May be useful to communicate with other morphometrics packages that use array of coordinates when handling configurations of landmarks.

See Also

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

Examples

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

Run the code above in your browser using DataLab