Learn R Programming

Momocs (version 1.0.0)

m2l: Converts a matrix of coordinates to a list of coordinates.

Description

Converts a matrix of (x; y) coordinates to a list with x and y components.

Usage

m2l(m)

Arguments

m
a two-columns matrix of x and y coordinates.

Value

a list with x and y components.

See Also

l2m.

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

Examples

Run this code
data(wings)
l <- m2l(wings[1])
l
m <- l2m(l)
m

Run the code above in your browser using DataLab