Learn R Programming

Momocs (version 0.2-6)

l2m: Converts a list of coordinates to a matrix.

Description

l2m converts a list with x and y components to a 2-col matrix of coordinates.

Usage

l2m(l)

Arguments

l
A list with x and y coordinates as components.

Value

  • Returns a matrix of (x; y)coordinates.

See Also

m2l.

Examples

Run this code
l <- list(x=1:5, y=5:1)
l2m(l)

Run the code above in your browser using DataLab