centroid: Calculate the centroid of a track.

Description Usage Arguments Examples

View source: R/track_methods.R

Description

Calculate the centroid of a track.

Usage

1
2
3
4
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.

Examples

1
2

Example output

Attaching package:amtThe following object is masked frompackage:stats:

    filter

     x_      y_ 
4313980 3446997 

amt documentation built on Jan. 18, 2021, 5:05 p.m.