coercion: Coerce a track to other formats.

coercionR Documentation

Coerce a track to other formats.

Description

Several other packages provides methods to analyze movement data, and amt provides coercion methods to some packages.

Usage

as_sf(x, ...)

## S3 method for class 'steps_xy'
as_sf(x, end = TRUE, ...)

as_sp(x, ...)

as_ltraj(x, ...)

## S3 method for class 'track_xy'
as_ltraj(x, id = "animal_1", ...)

## S3 method for class 'track_xyt'
as_ltraj(x, ...)

as_telemetry(x, ...)

## S3 method for class 'track_xyt'
as_telemetry(x, ...)

as_moveHMM(x, ...)

## S3 method for class 'track_xy'
as_moveHMM(x, ...)

Arguments

x

[track_xy, track_xyt]
A track created with make_track.

...

Further arguments, none implemented.

end

⁠[logical(1)=TRUE]⁠
For steps, should the end or start points be used?

id

⁠[numeric,character,factor]⁠
Animal id(s).

Value

An object of the class to which coercion is performed to.


amt documentation built on June 25, 2024, 1:14 a.m.