Learn R Programming

Momocs (version 0.2-6)

coo.perim: Calculates the perimeter of a list or matrix of coordinates.

Description

coo.perim returns the sum of the euclidean distances between all successive (x; y) coordinates.

Usage

coo.perim(coo)

Arguments

coo
A list or a matrix of coordinates.

Value

  • Returns the perimeter length.

Examples

Run this code
data(bot)
coo.perim(bot@coo[[1]])

Run the code above in your browser using DataLab