powered by
Calculates the centroid for a given set of XYZ coordinates.
centroid(data)
The coordinates of the centroid.
A data frame with x, y, and z coordinates.
data <- mesh_to_points(mcap) centroid(data)
Run the code above in your browser using DataLab