Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

as_track

Coerce to track


Description

Coerce other classes (currently implemented: SpatialPoints) to a track_xy.

Usage

as_track(x, ...)

## S3 method for class 'SpatialPoints'
as_track(x, ...)

## S3 method for class 'sfc_POINT'
as_track(x, ...)

## S3 method for class 'steps_xyt'
as_track(x, ...)

Arguments

x

[SpatialPoints]
Object to be converted to a track.

...

Further arguments, none implemented.

Examples

xy <- sp::SpatialPoints(cbind(c(1, 3, 2, 1), c(3, 2, 2, 1)))
as_track(xy)

amt

Animal Movement Tools

v0.1.4
GPL-3
Authors
Johannes Signer [aut, cre], Brian Smith [ctb], Bjoern Reineking [ctb], Ulrike Schlaegel [ctb], John Fieberg [ctb], Scott LaPoint [dtc]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.