Learn R Programming

amt (version 0.2.2.0)

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.

Examples

Run this code
data(deer)
centroid(deer)

Run the code above in your browser using DataLab