centroid: Calculate the centroid of 3D points

View source: R/centroid.R

centroidR 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)

habtools documentation built on May 29, 2024, 7:30 a.m.