centroid: Calculate the centroid of a track.
Description
Calculate the centroid of a track.
Usage
centroid(x, ...)# S3 method for track_xy
centroid(x, spatial = FALSE, ...)
Value
The centroid of a track as numeric vector if spatial = FALSE, otherwise as SpatialPoints.
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.