Interface to other packages with `amt`

knitr::opts_chunk$set(warning = FALSE, message = FALSE)

About

This vignette briefly introduces how one can coerce amt track_xy* to other commonly used packages. At the moment this vignette shows methods to coerce to adehabitatHR, ctmm, and move.

Getting the data ready

First we load the required libraries and the relocation data (called deer)

library(amt)
data("deer")
deer

adehbatit*

adehabitatLT_ltraj <- as_ltraj(deer)
adehabitatLT_ltraj

ctmm

With the function as_telemetry a track_xyt can be coerced to a telemetry object used in ctmm.

ctmm_obj <- as_telemetry(deer)
class(ctmm_obj)

move

Session

sessioninfo::session_info()


Try the amt package in your browser

Any scripts or data that you put into this service are public.

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