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

coercion

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_sp(x, ...)

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

as_move(x, ...)

## S3 method for class 'track_xyt'
as_move(x, id = "id", ...)

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_bcpa(x, ...)

## S3 method for class 'track_xyt'
as_bcpa(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).

Examples

data(deer)
as_move(deer)
as_move(deer, id = "foo")
data(deer)
as_ltraj(deer)
as_ltraj(deer, id = "animal_3")
data(deer)
d <- as_bcpa(deer)
data(deer)
as_telemetry(deer)
# Fit HMM with two states
data(deer)
dm <- as_moveHMM(deer)

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.