centroid {habtools}R Documentation

Calculate the centroid of 3D points

Description

Calculates the centroid for a given set of XYZ coordinates.

Usage

centroid(data)

Arguments

data

A data frame with x, y, and z coordinates.

Value

The coordinates of the centroid.

Examples

data <- mesh_to_points(mcap)
centroid(data)

[Package habtools version 1.0.5 Index]