centroid: Calculate the centroid of a track.

View source: R/track_methods.R

centroidR Documentation

Calculate the centroid of a track.

Description

Calculate the centroid of a track.

Usage

centroid(x, ...)

## S3 method for class 'track_xy'
centroid(x, spatial = FALSE, ...)

Arguments

x

[track_xy, track_xyt]
A track created with make_track.

...

Further arguments, none implemented.

spatial

⁠[logical(1)=FALSE]⁠
Whether or not to return a SpatialPoints-object.

Value

The centroid of a track as numeric vector if spatial = FALSE, otherwise as SpatialPoints.

Examples

data(deer)
centroid(deer)

amt documentation built on June 25, 2024, 1:14 a.m.