Learn R Programming

Momocs (version 0.2-6)

coo.unclose: Uncloses a list or matrix of coordinates.

Description

coo.unclose tests if coo is closed, then simply removes the last coordinate.

Usage

coo.unclose(coo)

Arguments

coo
A list or a matrix of coordinates.

Value

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

See Also

coo.close and is.closed

Examples

Run this code
data(gorf.dat)
coo <- gorf.dat[,,1]
is.closed(coo)
coo.c <- coo.close(coo)
is.closed(coo.c)
coo.cu <- coo.unclose(coo)
is.closed(coo.cu)

Run the code above in your browser using DataLab