Learn R Programming

Momocs (version 0.2-6)

coo.close: Closes a list or matrix of coordinates.

Description

coo.close closes coo, i.e. makes the last coordinates be the first than the first.

Usage

coo.close(coo)

Arguments

coo
A list or a matrix of coordinates.

Value

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

See Also

coo.unclose and is.closed

Examples

Run this code
data(gorf.dat) # we import gorf.data from shapes package
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