Learn R Programming

Momocs (version 1.1.6)

coo_length: Calculates the length of a shape

Description

Nothing more than coo_lw(coo)[1].

Usage

coo_length(coo)

Arguments

coo
a matrix of (x; y) coordinates or a Coo object

Value

the length (in pixels) of the shape

Details

This function can be used to integrate size - if meaningful - to Coo objects. See also coo_centsize and rescale.

See Also

coo_lw, coo_width Other coo_ descriptors: coo_area, coo_boundingbox, coo_chull, coo_circularityharalick, coo_circularitynorm, coo_circularity, coo_convexity, coo_eccentricityboundingbox, coo_eccentricityeigen, coo_elongation, coo_lw, coo_rectangularity, coo_rectilinearity, coo_solidity, coo_tangle, coo_theta3, coo_thetapts, coo_width

Examples

Run this code
data(bot)
coo_length(bot[1])
coo_length(bot)
mutate(bot, size=coo_length(bot))

Run the code above in your browser using DataLab