Use compute_point(), whose default method = "centroid"
does the same.
This returns exactly what it did: the centroid, with any declared
orientation left NA.
Arguments
- data
An anipoint with Cartesian coordinates.
- across
Identity variables to collapse — the dimensions the new point is derived over. Required when the frame declares more than one identity variable, since their order is not a hierarchy and there is no finest one to assume; with a single identity variable, that one is the default. Collapsing every level gives a single point per position.
- include, exclude
Values of the collapsed level to keep or leave out. Only meaningful when one level is collapsed. A midpoint is the centroid of two members:
include = c("ear_l", "ear_r").- name
Name for the summary member. Default is
"centroid".