Learn R Programming

amt (version 0.0.7)

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, ...)

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
# NOT RUN {
data(deer)
centroid(deer)
# }

Run the code above in your browser using DataLab