coo_length: Calculates the length of a shape

View source: R/coo-shapedescriptors.R

coo_lengthR Documentation

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

Details

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

Value

the length (in pixels) of the shape

See Also

coo_lw, coo_width

Other coo_ descriptors: coo_angle_edges(), coo_angle_tangent(), coo_area(), coo_boundingbox(), coo_chull(), coo_circularity(), coo_convexity(), coo_eccentricity, coo_elongation(), coo_lw(), coo_rectangularity(), coo_rectilinearity(), coo_scalars(), coo_solidity(), coo_tac(), coo_width()

Examples

coo_length(bot[1])
coo_length(bot)
mutate(bot, size=coo_length(bot))

MomX/Momocs documentation built on Nov. 18, 2023, 10:53 p.m.