Learn R Programming

Momocs (version 0.2-6)

is.closed: Tests if a list or matrix of coordinates is closed.

Description

is.closed tests if the last coordinate of coo provided as a list or a matrix is closed, i.e. if the last coordinate is identical as the first.

Usage

is.closed(coo)

Arguments

coo
A list or a matrix of coordinates.

Value

  • A logical, either TRUE or FALSE.

See Also

coo.close and coo.unclose.

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