coo_centsize: Calculates centroid size

coo_centsizeR Documentation

Calculates centroid size

Description

Calculates centroid size

Usage

coo_centsize(coo)

Arguments

coo

matrix of ⁠(x; y)⁠ coordinates or any Coo object.

Details

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

Value

numeric, the centroid size.

See Also

Other centroid functions: coo_centdist(), coo_centpos()

Examples

coo_centsize(bot[1])
# on a Coo
coo_centsize(bot)
# add it to $fac
mutate(bot, size=coo_centsize(bot))

vbonhomme/Momocs documentation built on Nov. 13, 2023, 8:54 p.m.