amt
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
.
First we load the required libraries and the relocation data (called
deer
)
## # A tibble: 826 × 4
## x_ y_ t_ burst_
## * <dbl> <dbl> <dttm> <dbl>
## 1 4314068. 3445807. 2008-03-30 00:01:47 1
## 2 4314053. 3445768. 2008-03-30 06:00:54 1
## 3 4314105. 3445859. 2008-03-30 12:01:47 1
## 4 4314044. 3445785. 2008-03-30 18:01:24 1
## 5 4313015. 3445858. 2008-03-31 00:01:23 1
## 6 4312860. 3445857. 2008-03-31 06:01:45 1
## 7 4312854. 3445856. 2008-03-31 12:01:11 1
## 8 4312858. 3445858. 2008-03-31 18:01:55 1
## 9 4312745. 3445862. 2008-04-01 00:01:24 1
## 10 4312651. 3446024. 2008-04-01 06:00:54 1
## # ℹ 816 more rows
adehbatit*
##
## *********** List of class ltraj ***********
##
## Type of the traject: Type II (time recorded)
## * Time zone: UTC *
## Irregular traject. Variable time lag between two locs
##
## Characteristics of the bursts:
## id burst nb.reloc NAs date.begin date.end
## 1 animal_1 animal_1 826 0 2008-03-30 00:01:47 2009-04-28 00:00:21
##
##
## infolocs provided. The following variables are available:
## [1] "pkey"
ctmm
With the function as_telemetry
a track_xyt
can be coerced to a telemetry
object used in
ctmm
.
## [1] "telemetry"
## attr(,"package")
## [1] "ctmm"
move
## ─ Session info ───────────────────────────────────────────────────────────────
## setting value
## version R version 4.4.3 (2025-02-28)
## os Ubuntu 24.04.2 LTS
## system x86_64, linux-gnu
## ui X11
## language (EN)
## collate C
## ctype en_US.UTF-8
## tz Etc/UTC
## date 2025-03-13
## pandoc 3.2.1 @ /usr/local/bin/ (via rmarkdown)
## quarto 1.6.40 @ /usr/local/bin/quarto
##
## ─ Packages ───────────────────────────────────────────────────────────────────
## package * version date (UTC) lib source
## ade4 1.7-23 2025-02-14 [2] RSPM (R 4.4.0)
## adehabitatLT 0.3.28 2024-09-06 [2] RSPM (R 4.4.0)
## adehabitatMA 0.3.17 2024-09-06 [2] RSPM (R 4.4.0)
## amt * 0.3.0.0 2025-03-13 [1] https://jmsigner.r-universe.dev (R 4.4.3)
## backports 1.5.0 2024-05-23 [2] RSPM (R 4.4.0)
## boot 1.3-31 2024-08-28 [2] RSPM (R 4.4.0)
## bslib 0.9.0 2025-01-30 [2] RSPM (R 4.4.0)
## buildtools 1.0.0 2025-03-06 [3] local (/pkg)
## cachem 1.1.0 2024-05-16 [2] RSPM (R 4.4.0)
## checkmate 2.3.2 2024-07-29 [2] RSPM (R 4.4.0)
## CircStats 0.2-6 2018-07-01 [2] RSPM (R 4.4.0)
## circular 0.5-1 2024-08-29 [2] RSPM (R 4.4.0)
## class 7.3-23 2025-01-01 [2] RSPM (R 4.4.0)
## classInt 0.4-11 2025-01-08 [2] RSPM (R 4.4.0)
## cli 3.6.4 2025-02-13 [2] RSPM (R 4.4.0)
## codetools 0.2-20 2024-03-31 [5] CRAN (R 4.4.0)
## colorspace 2.1-1 2024-07-26 [2] RSPM (R 4.4.0)
## ctmm 1.2.0 2023-09-23 [2] RSPM (R 4.4.0)
## data.table 1.17.0 2025-02-22 [2] RSPM (R 4.4.0)
## DBI 1.2.3 2024-06-02 [2] RSPM (R 4.4.0)
## DEoptimR 1.1-3-1 2024-11-23 [2] RSPM (R 4.4.0)
## digest 0.6.37 2024-08-19 [2] RSPM (R 4.4.0)
## dplyr * 1.1.4 2023-11-17 [2] RSPM (R 4.4.0)
## e1071 1.7-16 2024-09-16 [2] RSPM (R 4.4.0)
## evaluate 1.0.3 2025-01-10 [2] RSPM (R 4.4.0)
## farver 2.1.2 2024-05-13 [2] RSPM (R 4.4.0)
## fastmap 1.2.0 2024-05-15 [2] RSPM (R 4.4.0)
## fitdistrplus 1.2-2 2025-01-07 [2] RSPM (R 4.4.0)
## generics 0.1.3 2022-07-05 [2] RSPM (R 4.4.0)
## ggforce 0.4.2 2024-02-19 [2] RSPM (R 4.4.0)
## ggplot2 * 3.5.1 2024-04-23 [2] RSPM (R 4.4.0)
## ggraph * 2.2.1 2024-03-07 [2] RSPM (R 4.4.0)
## ggrepel 0.9.6 2024-09-07 [2] RSPM (R 4.4.0)
## glue 1.8.0 2024-09-30 [2] RSPM (R 4.4.0)
## Gmedian 1.2.7 2022-06-08 [2] RSPM (R 4.4.0)
## graphlayouts 1.2.2 2025-01-23 [2] RSPM (R 4.4.0)
## gridExtra 2.3 2017-09-09 [2] RSPM (R 4.4.0)
## gtable 0.3.6 2024-10-25 [2] RSPM (R 4.4.0)
## htmltools 0.5.8.1 2024-04-04 [2] RSPM (R 4.4.0)
## igraph 2.1.4 2025-01-23 [2] RSPM (R 4.4.0)
## jquerylib 0.1.4 2021-04-26 [2] RSPM (R 4.4.0)
## jsonlite 1.9.1 2025-03-03 [2] RSPM (R 4.4.0)
## KernSmooth 2.23-26 2025-01-01 [2] RSPM (R 4.4.0)
## knitr * 1.49 2024-11-08 [2] RSPM (R 4.4.0)
## labeling 0.4.3 2023-08-29 [2] RSPM (R 4.4.0)
## lattice 0.22-6 2024-03-20 [2] RSPM (R 4.4.0)
## lifecycle 1.0.4 2023-11-07 [2] RSPM (R 4.4.0)
## lubridate * 1.9.4 2024-12-08 [2] RSPM (R 4.4.0)
## magrittr 2.0.3 2022-03-30 [2] RSPM (R 4.4.0)
## maketools 1.3.2 2025-01-25 [3] RSPM (R 4.4.0)
## MASS 7.3-65 2025-02-28 [2] RSPM (R 4.4.0)
## Matrix 1.7-3 2025-03-11 [2] RSPM (R 4.4.0)
## memoise 2.0.1 2021-11-26 [2] RSPM (R 4.4.0)
## munsell 0.5.1 2024-04-01 [2] RSPM (R 4.4.0)
## mvtnorm 1.3-3 2025-01-10 [2] RSPM (R 4.4.0)
## pillar 1.10.1 2025-01-07 [2] RSPM (R 4.4.0)
## pkgconfig 2.0.3 2019-09-22 [2] RSPM (R 4.4.0)
## polyclip 1.10-7 2024-07-23 [2] RSPM (R 4.4.0)
## proxy 0.4-27 2022-06-09 [2] RSPM (R 4.4.0)
## purrr 1.0.4 2025-02-05 [2] RSPM (R 4.4.0)
## R6 2.6.1 2025-02-15 [2] RSPM (R 4.4.0)
## raster 3.6-31 2025-01-16 [2] RSPM (R 4.4.0)
## rbibutils 2.3 2024-10-04 [2] RSPM (R 4.4.0)
## Rcpp 1.0.14 2025-01-12 [2] RSPM (R 4.4.0)
## Rdpack 2.6.2 2024-11-15 [2] RSPM (R 4.4.0)
## rlang 1.1.5 2025-01-17 [2] RSPM (R 4.4.0)
## rmarkdown * 2.29 2024-11-04 [2] RSPM (R 4.4.0)
## robustbase 0.99-4-1 2024-09-27 [2] RSPM (R 4.4.0)
## RSpectra 0.16-2 2024-07-18 [2] RSPM (R 4.4.0)
## sass 0.4.9 2024-03-15 [2] RSPM (R 4.4.0)
## scales 1.3.0 2023-11-28 [2] RSPM (R 4.4.0)
## sessioninfo 1.2.3 2025-02-05 [2] RSPM (R 4.4.0)
## sf 1.0-19 2024-11-05 [2] RSPM (R 4.4.0)
## sp 2.2-0 2025-02-01 [2] RSPM (R 4.4.0)
## survival 3.8-3 2024-12-17 [2] RSPM (R 4.4.0)
## sys 3.4.3 2024-10-04 [2] RSPM (R 4.4.0)
## terra 1.8-29 2025-02-26 [2] RSPM (R 4.4.0)
## tibble 3.2.1 2023-03-20 [2] RSPM (R 4.4.0)
## tidygraph * 1.3.1 2024-01-30 [2] RSPM (R 4.4.0)
## tidyr 1.3.1 2024-01-24 [2] RSPM (R 4.4.0)
## tidyselect 1.2.1 2024-03-11 [2] RSPM (R 4.4.0)
## timechange 0.3.0 2024-01-18 [2] RSPM (R 4.4.0)
## tweenr 2.0.3 2024-02-26 [2] RSPM (R 4.4.0)
## units 0.8-7 2025-03-11 [2] RSPM (R 4.4.0)
## utf8 1.2.4 2023-10-22 [2] RSPM (R 4.4.0)
## vctrs 0.6.5 2023-12-01 [2] RSPM (R 4.4.0)
## viridis 0.6.5 2024-01-29 [2] RSPM (R 4.4.0)
## viridisLite 0.4.2 2023-05-02 [2] RSPM (R 4.4.0)
## withr 3.0.2 2024-10-28 [2] RSPM (R 4.4.0)
## xfun 0.51 2025-02-19 [2] RSPM (R 4.4.0)
## yaml 2.3.10 2024-07-26 [2] RSPM (R 4.4.0)
##
## [1] /tmp/RtmpC340kX/Rinst17ff5b3a2574
## [2] /github/workspace/pkglib
## [3] /usr/local/lib/R/site-library
## [4] /usr/lib/R/site-library
## [5] /usr/lib/R/library
## * ── Packages attached to the search path.
##
## ──────────────────────────────────────────────────────────────────────────────