View source: R/track_methods.R
centroid | R Documentation |
Calculate the centroid of a track.
centroid(x, ...)
## S3 method for class 'track_xy'
centroid(x, spatial = FALSE, ...)
x |
|
... |
Further arguments, none implemented. |
spatial |
|
The centroid of a track as numeric vector if spatial = FALSE
, otherwise as SpatialPoints
.
data(deer)
centroid(deer)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.