From 17859c7e1d531fbf739257263ccb1477473f320c Mon Sep 17 00:00:00 2001 From: Simon Garnier Date: Tue, 10 Jan 2023 22:11:17 +0100 Subject: [PATCH 1/2] Don't run slow examples --- R/conversions.R | 2 + docs/pkgdown.yml | 2 +- docs/reference/conversions.html | 645 +------------------------------- docs/reference/projection.html | 91 +---- docs/search.json | 2 +- man/conversions.Rd | 2 + 6 files changed, 15 insertions(+), 729 deletions(-) diff --git a/R/conversions.R b/R/conversions.R index 86a2986..b6dc5a8 100644 --- a/R/conversions.R +++ b/R/conversions.R @@ -43,6 +43,7 @@ #' @seealso \code{\link{track_df}}, \code{\link{track_tbl}}, \code{\link{track_dt}} #' #' @examples +#' \dontrun{ #' data(short_tracks) #' #' if (requireNamespace("moveVis", quietly = TRUE)) { @@ -69,6 +70,7 @@ #' hhm <- as_moveHMM(short_tracks, type = "LL") #' as_track(hhm) #' } +#' } #' #' @rdname conversions #' diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index ef9ebf9..26dbbae 100644 --- a/docs/pkgdown.yml +++ b/docs/pkgdown.yml @@ -5,7 +5,7 @@ articles: z1_install: z1_install.html z2_build: z2_build.html z3_manipulate: z3_manipulate.html -last_built: 2023-01-10T17:28Z +last_built: 2023-01-10T21:10Z urls: reference: https://swarm-lab.github.io/trackdf/reference article: https://swarm-lab.github.io/trackdf/articles diff --git a/docs/reference/conversions.html b/docs/reference/conversions.html index 16e4b48..1e12fd5 100644 --- a/docs/reference/conversions.html +++ b/docs/reference/conversions.html @@ -164,673 +164,34 @@

Author<

Examples

-
data(short_tracks)
+    
if (FALSE) {
+data(short_tracks)
 
 if (requireNamespace("moveVis", quietly = TRUE)) {
   mv <- as_move(short_tracks)
   as_track(mv)
 }
-#> Track table [120 observations]
-#> Number of tracks:  2 
-#> Dimensions:  2D 
-#> Geographic:  TRUE 
-#> Projection:  +proj=longlat +datum=WGS84 +no_defs 
-#> Table class:  data frame
-#>     id                   t        x         y
-#> 1   X1 2015-09-10 07:01:00 15.76468 -22.37961
-#> 2   X1 2015-09-10 07:01:01 15.76469 -22.37960
-#> 3   X1 2015-09-10 07:01:02 15.76469 -22.37960
-#> 4   X1 2015-09-10 07:01:03 15.76469 -22.37960
-#> 5   X1 2015-09-10 07:01:04 15.76470 -22.37960
-#> 6   X1 2015-09-10 07:01:05 15.76469 -22.37960
-#> 7   X1 2015-09-10 07:01:06 15.76469 -22.37960
-#> 8   X1 2015-09-10 07:01:07 15.76469 -22.37959
-#> 9   X1 2015-09-10 07:01:08 15.76469 -22.37959
-#> 10  X1 2015-09-10 07:01:09 15.76469 -22.37959
-#> 11  X1 2015-09-10 07:01:10 15.76469 -22.37959
-#> 12  X1 2015-09-10 07:01:11 15.76469 -22.37960
-#> 13  X1 2015-09-10 07:01:12 15.76469 -22.37960
-#> 14  X1 2015-09-10 07:01:13 15.76469 -22.37960
-#> 15  X1 2015-09-10 07:01:14 15.76469 -22.37960
-#> 16  X1 2015-09-10 07:01:15 15.76468 -22.37960
-#> 17  X1 2015-09-10 07:01:16 15.76468 -22.37960
-#> 18  X1 2015-09-10 07:01:17 15.76468 -22.37960
-#> 19  X1 2015-09-10 07:01:18 15.76468 -22.37960
-#> 20  X1 2015-09-10 07:01:19 15.76468 -22.37960
-#> 21  X1 2015-09-10 07:01:20 15.76468 -22.37960
-#> 22  X1 2015-09-10 07:01:21 15.76468 -22.37960
-#> 23  X1 2015-09-10 07:01:22 15.76468 -22.37960
-#> 24  X1 2015-09-10 07:01:23 15.76468 -22.37960
-#> 25  X1 2015-09-10 07:01:24 15.76468 -22.37960
-#> 26  X1 2015-09-10 07:01:25 15.76468 -22.37960
-#> 27  X1 2015-09-10 07:01:26 15.76468 -22.37960
-#> 28  X1 2015-09-10 07:01:27 15.76468 -22.37960
-#> 29  X1 2015-09-10 07:01:28 15.76468 -22.37960
-#> 30  X1 2015-09-10 07:01:29 15.76468 -22.37960
-#> 31  X1 2015-09-10 07:01:30 15.76468 -22.37960
-#> 32  X1 2015-09-10 07:01:31 15.76468 -22.37960
-#> 33  X1 2015-09-10 07:01:32 15.76469 -22.37960
-#> 34  X1 2015-09-10 07:01:33 15.76469 -22.37960
-#> 35  X1 2015-09-10 07:01:34 15.76469 -22.37960
-#> 36  X1 2015-09-10 07:01:35 15.76469 -22.37960
-#> 37  X1 2015-09-10 07:01:36 15.76469 -22.37960
-#> 38  X1 2015-09-10 07:01:37 15.76469 -22.37960
-#> 39  X1 2015-09-10 07:01:38 15.76469 -22.37960
-#> 40  X1 2015-09-10 07:01:39 15.76469 -22.37960
-#> 41  X1 2015-09-10 07:01:40 15.76469 -22.37960
-#> 42  X1 2015-09-10 07:01:41 15.76469 -22.37960
-#> 43  X1 2015-09-10 07:01:42 15.76469 -22.37960
-#> 44  X1 2015-09-10 07:01:43 15.76469 -22.37960
-#> 45  X1 2015-09-10 07:01:44 15.76469 -22.37960
-#> 46  X1 2015-09-10 07:01:45 15.76469 -22.37960
-#> 47  X1 2015-09-10 07:01:46 15.76469 -22.37960
-#> 48  X1 2015-09-10 07:01:47 15.76469 -22.37960
-#> 49  X1 2015-09-10 07:01:48 15.76469 -22.37960
-#> 50  X1 2015-09-10 07:01:49 15.76469 -22.37959
-#> 51  X1 2015-09-10 07:01:50 15.76469 -22.37959
-#> 52  X1 2015-09-10 07:01:51 15.76470 -22.37959
-#> 53  X1 2015-09-10 07:01:52 15.76470 -22.37959
-#> 54  X1 2015-09-10 07:01:53 15.76470 -22.37959
-#> 55  X1 2015-09-10 07:01:54 15.76470 -22.37960
-#> 56  X1 2015-09-10 07:01:55 15.76470 -22.37960
-#> 57  X1 2015-09-10 07:01:56 15.76471 -22.37960
-#> 58  X1 2015-09-10 07:01:57 15.76471 -22.37959
-#> 59  X1 2015-09-10 07:01:58 15.76471 -22.37959
-#> 60  X1 2015-09-10 07:01:59 15.76471 -22.37959
-#> 61  X2 2015-09-10 07:01:00 15.76459 -22.37971
-#> 62  X2 2015-09-10 07:01:01 15.76459 -22.37971
-#> 63  X2 2015-09-10 07:01:02 15.76459 -22.37971
-#> 64  X2 2015-09-10 07:01:03 15.76459 -22.37971
-#> 65  X2 2015-09-10 07:01:04 15.76459 -22.37971
-#> 66  X2 2015-09-10 07:01:05 15.76459 -22.37971
-#> 67  X2 2015-09-10 07:01:06 15.76459 -22.37971
-#> 68  X2 2015-09-10 07:01:07 15.76459 -22.37971
-#> 69  X2 2015-09-10 07:01:08 15.76459 -22.37971
-#> 70  X2 2015-09-10 07:01:09 15.76459 -22.37971
-#> 71  X2 2015-09-10 07:01:10 15.76459 -22.37971
-#> 72  X2 2015-09-10 07:01:11 15.76459 -22.37971
-#> 73  X2 2015-09-10 07:01:12 15.76459 -22.37971
-#> 74  X2 2015-09-10 07:01:13 15.76459 -22.37971
-#> 75  X2 2015-09-10 07:01:14 15.76459 -22.37971
-#> 76  X2 2015-09-10 07:01:15 15.76459 -22.37971
-#> 77  X2 2015-09-10 07:01:16 15.76459 -22.37971
-#> 78  X2 2015-09-10 07:01:17 15.76459 -22.37971
-#> 79  X2 2015-09-10 07:01:18 15.76459 -22.37971
-#> 80  X2 2015-09-10 07:01:19 15.76459 -22.37971
-#> 81  X2 2015-09-10 07:01:20 15.76459 -22.37971
-#> 82  X2 2015-09-10 07:01:21 15.76459 -22.37971
-#> 83  X2 2015-09-10 07:01:22 15.76459 -22.37971
-#> 84  X2 2015-09-10 07:01:23 15.76459 -22.37971
-#> 85  X2 2015-09-10 07:01:24 15.76459 -22.37971
-#> 86  X2 2015-09-10 07:01:25 15.76458 -22.37971
-#> 87  X2 2015-09-10 07:01:26 15.76459 -22.37971
-#> 88  X2 2015-09-10 07:01:27 15.76459 -22.37971
-#> 89  X2 2015-09-10 07:01:28 15.76459 -22.37971
-#> 90  X2 2015-09-10 07:01:29 15.76458 -22.37971
-#> 91  X2 2015-09-10 07:01:30 15.76458 -22.37971
-#> 92  X2 2015-09-10 07:01:31 15.76457 -22.37971
-#> 93  X2 2015-09-10 07:01:32 15.76456 -22.37971
-#> 94  X2 2015-09-10 07:01:33 15.76455 -22.37972
-#> 95  X2 2015-09-10 07:01:34 15.76455 -22.37972
-#> 96  X2 2015-09-10 07:01:35 15.76455 -22.37973
-#> 97  X2 2015-09-10 07:01:36 15.76455 -22.37973
-#> 98  X2 2015-09-10 07:01:37 15.76455 -22.37974
-#> 99  X2 2015-09-10 07:01:38 15.76455 -22.37974
-#> 100 X2 2015-09-10 07:01:39 15.76455 -22.37975
-#> 101 X2 2015-09-10 07:01:40 15.76455 -22.37975
-#> 102 X2 2015-09-10 07:01:41 15.76454 -22.37976
-#> 103 X2 2015-09-10 07:01:42 15.76455 -22.37976
-#> 104 X2 2015-09-10 07:01:43 15.76455 -22.37976
-#> 105 X2 2015-09-10 07:01:44 15.76455 -22.37977
-#> 106 X2 2015-09-10 07:01:45 15.76456 -22.37977
-#> 107 X2 2015-09-10 07:01:46 15.76457 -22.37978
-#> 108 X2 2015-09-10 07:01:47 15.76458 -22.37978
-#> 109 X2 2015-09-10 07:01:48 15.76459 -22.37979
-#> 110 X2 2015-09-10 07:01:49 15.76459 -22.37979
-#> 111 X2 2015-09-10 07:01:50 15.76460 -22.37980
-#> 112 X2 2015-09-10 07:01:51 15.76461 -22.37980
-#> 113 X2 2015-09-10 07:01:52 15.76461 -22.37981
-#> 114 X2 2015-09-10 07:01:53 15.76461 -22.37981
-#> 115 X2 2015-09-10 07:01:54 15.76462 -22.37981
-#> 116 X2 2015-09-10 07:01:55 15.76463 -22.37982
-#> 117 X2 2015-09-10 07:01:56 15.76463 -22.37982
-#> 118 X2 2015-09-10 07:01:57 15.76464 -22.37982
-#> 119 X2 2015-09-10 07:01:58 15.76465 -22.37982
-#> 120 X2 2015-09-10 07:01:59 15.76466 -22.37982
 
 if (requireNamespace("sp", quietly = TRUE)) {
   sp <- as_sp(short_tracks)
   as_track(sp)
 }
-#> Track table [120 observations]
-#> Number of tracks:  2 
-#> Dimensions:  2D 
-#> Geographic:  TRUE 
-#> Projection:  +proj=longlat +datum=WGS84 +no_defs 
-#> Table class:  data frame
-#>     id                   t        x         y
-#> 1    1 2015-09-10 07:01:00 15.76468 -22.37961
-#> 2    1 2015-09-10 07:01:01 15.76469 -22.37960
-#> 3    1 2015-09-10 07:01:02 15.76469 -22.37960
-#> 4    1 2015-09-10 07:01:03 15.76469 -22.37960
-#> 5    1 2015-09-10 07:01:04 15.76470 -22.37960
-#> 6    1 2015-09-10 07:01:05 15.76469 -22.37960
-#> 7    1 2015-09-10 07:01:06 15.76469 -22.37960
-#> 8    1 2015-09-10 07:01:07 15.76469 -22.37959
-#> 9    1 2015-09-10 07:01:08 15.76469 -22.37959
-#> 10   1 2015-09-10 07:01:09 15.76469 -22.37959
-#> 11   1 2015-09-10 07:01:10 15.76469 -22.37959
-#> 12   1 2015-09-10 07:01:11 15.76469 -22.37960
-#> 13   1 2015-09-10 07:01:12 15.76469 -22.37960
-#> 14   1 2015-09-10 07:01:13 15.76469 -22.37960
-#> 15   1 2015-09-10 07:01:14 15.76469 -22.37960
-#> 16   1 2015-09-10 07:01:15 15.76468 -22.37960
-#> 17   1 2015-09-10 07:01:16 15.76468 -22.37960
-#> 18   1 2015-09-10 07:01:17 15.76468 -22.37960
-#> 19   1 2015-09-10 07:01:18 15.76468 -22.37960
-#> 20   1 2015-09-10 07:01:19 15.76468 -22.37960
-#> 21   1 2015-09-10 07:01:20 15.76468 -22.37960
-#> 22   1 2015-09-10 07:01:21 15.76468 -22.37960
-#> 23   1 2015-09-10 07:01:22 15.76468 -22.37960
-#> 24   1 2015-09-10 07:01:23 15.76468 -22.37960
-#> 25   1 2015-09-10 07:01:24 15.76468 -22.37960
-#> 26   1 2015-09-10 07:01:25 15.76468 -22.37960
-#> 27   1 2015-09-10 07:01:26 15.76468 -22.37960
-#> 28   1 2015-09-10 07:01:27 15.76468 -22.37960
-#> 29   1 2015-09-10 07:01:28 15.76468 -22.37960
-#> 30   1 2015-09-10 07:01:29 15.76468 -22.37960
-#> 31   1 2015-09-10 07:01:30 15.76468 -22.37960
-#> 32   1 2015-09-10 07:01:31 15.76468 -22.37960
-#> 33   1 2015-09-10 07:01:32 15.76469 -22.37960
-#> 34   1 2015-09-10 07:01:33 15.76469 -22.37960
-#> 35   1 2015-09-10 07:01:34 15.76469 -22.37960
-#> 36   1 2015-09-10 07:01:35 15.76469 -22.37960
-#> 37   1 2015-09-10 07:01:36 15.76469 -22.37960
-#> 38   1 2015-09-10 07:01:37 15.76469 -22.37960
-#> 39   1 2015-09-10 07:01:38 15.76469 -22.37960
-#> 40   1 2015-09-10 07:01:39 15.76469 -22.37960
-#> 41   1 2015-09-10 07:01:40 15.76469 -22.37960
-#> 42   1 2015-09-10 07:01:41 15.76469 -22.37960
-#> 43   1 2015-09-10 07:01:42 15.76469 -22.37960
-#> 44   1 2015-09-10 07:01:43 15.76469 -22.37960
-#> 45   1 2015-09-10 07:01:44 15.76469 -22.37960
-#> 46   1 2015-09-10 07:01:45 15.76469 -22.37960
-#> 47   1 2015-09-10 07:01:46 15.76469 -22.37960
-#> 48   1 2015-09-10 07:01:47 15.76469 -22.37960
-#> 49   1 2015-09-10 07:01:48 15.76469 -22.37960
-#> 50   1 2015-09-10 07:01:49 15.76469 -22.37959
-#> 51   1 2015-09-10 07:01:50 15.76469 -22.37959
-#> 52   1 2015-09-10 07:01:51 15.76470 -22.37959
-#> 53   1 2015-09-10 07:01:52 15.76470 -22.37959
-#> 54   1 2015-09-10 07:01:53 15.76470 -22.37959
-#> 55   1 2015-09-10 07:01:54 15.76470 -22.37960
-#> 56   1 2015-09-10 07:01:55 15.76470 -22.37960
-#> 57   1 2015-09-10 07:01:56 15.76471 -22.37960
-#> 58   1 2015-09-10 07:01:57 15.76471 -22.37959
-#> 59   1 2015-09-10 07:01:58 15.76471 -22.37959
-#> 60   1 2015-09-10 07:01:59 15.76471 -22.37959
-#> 61   2 2015-09-10 07:01:00 15.76459 -22.37971
-#> 62   2 2015-09-10 07:01:01 15.76459 -22.37971
-#> 63   2 2015-09-10 07:01:02 15.76459 -22.37971
-#> 64   2 2015-09-10 07:01:03 15.76459 -22.37971
-#> 65   2 2015-09-10 07:01:04 15.76459 -22.37971
-#> 66   2 2015-09-10 07:01:05 15.76459 -22.37971
-#> 67   2 2015-09-10 07:01:06 15.76459 -22.37971
-#> 68   2 2015-09-10 07:01:07 15.76459 -22.37971
-#> 69   2 2015-09-10 07:01:08 15.76459 -22.37971
-#> 70   2 2015-09-10 07:01:09 15.76459 -22.37971
-#> 71   2 2015-09-10 07:01:10 15.76459 -22.37971
-#> 72   2 2015-09-10 07:01:11 15.76459 -22.37971
-#> 73   2 2015-09-10 07:01:12 15.76459 -22.37971
-#> 74   2 2015-09-10 07:01:13 15.76459 -22.37971
-#> 75   2 2015-09-10 07:01:14 15.76459 -22.37971
-#> 76   2 2015-09-10 07:01:15 15.76459 -22.37971
-#> 77   2 2015-09-10 07:01:16 15.76459 -22.37971
-#> 78   2 2015-09-10 07:01:17 15.76459 -22.37971
-#> 79   2 2015-09-10 07:01:18 15.76459 -22.37971
-#> 80   2 2015-09-10 07:01:19 15.76459 -22.37971
-#> 81   2 2015-09-10 07:01:20 15.76459 -22.37971
-#> 82   2 2015-09-10 07:01:21 15.76459 -22.37971
-#> 83   2 2015-09-10 07:01:22 15.76459 -22.37971
-#> 84   2 2015-09-10 07:01:23 15.76459 -22.37971
-#> 85   2 2015-09-10 07:01:24 15.76459 -22.37971
-#> 86   2 2015-09-10 07:01:25 15.76458 -22.37971
-#> 87   2 2015-09-10 07:01:26 15.76459 -22.37971
-#> 88   2 2015-09-10 07:01:27 15.76459 -22.37971
-#> 89   2 2015-09-10 07:01:28 15.76459 -22.37971
-#> 90   2 2015-09-10 07:01:29 15.76458 -22.37971
-#> 91   2 2015-09-10 07:01:30 15.76458 -22.37971
-#> 92   2 2015-09-10 07:01:31 15.76457 -22.37971
-#> 93   2 2015-09-10 07:01:32 15.76456 -22.37971
-#> 94   2 2015-09-10 07:01:33 15.76455 -22.37972
-#> 95   2 2015-09-10 07:01:34 15.76455 -22.37972
-#> 96   2 2015-09-10 07:01:35 15.76455 -22.37973
-#> 97   2 2015-09-10 07:01:36 15.76455 -22.37973
-#> 98   2 2015-09-10 07:01:37 15.76455 -22.37974
-#> 99   2 2015-09-10 07:01:38 15.76455 -22.37974
-#> 100  2 2015-09-10 07:01:39 15.76455 -22.37975
-#> 101  2 2015-09-10 07:01:40 15.76455 -22.37975
-#> 102  2 2015-09-10 07:01:41 15.76454 -22.37976
-#> 103  2 2015-09-10 07:01:42 15.76455 -22.37976
-#> 104  2 2015-09-10 07:01:43 15.76455 -22.37976
-#> 105  2 2015-09-10 07:01:44 15.76455 -22.37977
-#> 106  2 2015-09-10 07:01:45 15.76456 -22.37977
-#> 107  2 2015-09-10 07:01:46 15.76457 -22.37978
-#> 108  2 2015-09-10 07:01:47 15.76458 -22.37978
-#> 109  2 2015-09-10 07:01:48 15.76459 -22.37979
-#> 110  2 2015-09-10 07:01:49 15.76459 -22.37979
-#> 111  2 2015-09-10 07:01:50 15.76460 -22.37980
-#> 112  2 2015-09-10 07:01:51 15.76461 -22.37980
-#> 113  2 2015-09-10 07:01:52 15.76461 -22.37981
-#> 114  2 2015-09-10 07:01:53 15.76461 -22.37981
-#> 115  2 2015-09-10 07:01:54 15.76462 -22.37981
-#> 116  2 2015-09-10 07:01:55 15.76463 -22.37982
-#> 117  2 2015-09-10 07:01:56 15.76463 -22.37982
-#> 118  2 2015-09-10 07:01:57 15.76464 -22.37982
-#> 119  2 2015-09-10 07:01:58 15.76465 -22.37982
-#> 120  2 2015-09-10 07:01:59 15.76466 -22.37982
 
 if (requireNamespace("adehabitatLT", quietly = TRUE)) {
   lt <- as_ltraj(short_tracks)
   as_track(lt)
 }
-#> Registered S3 methods overwritten by 'adehabitatMA':
-#>   method                       from
-#>   print.SpatialPixelsDataFrame sp  
-#>   print.SpatialPixels          sp  
-#> Track table [120 observations]
-#> Number of tracks:  2 
-#> Dimensions:  2D 
-#> Geographic:  TRUE 
-#> Projection:  +proj=longlat +datum=WGS84 +no_defs 
-#> Table class:  data frame
-#>     id                   t        x         y
-#> 1    1 2015-09-10 07:01:00 15.76468 -22.37961
-#> 2    1 2015-09-10 07:01:01 15.76469 -22.37960
-#> 3    1 2015-09-10 07:01:02 15.76469 -22.37960
-#> 4    1 2015-09-10 07:01:03 15.76469 -22.37960
-#> 5    1 2015-09-10 07:01:04 15.76470 -22.37960
-#> 6    1 2015-09-10 07:01:05 15.76469 -22.37960
-#> 7    1 2015-09-10 07:01:06 15.76469 -22.37960
-#> 8    1 2015-09-10 07:01:07 15.76469 -22.37959
-#> 9    1 2015-09-10 07:01:08 15.76469 -22.37959
-#> 10   1 2015-09-10 07:01:09 15.76469 -22.37959
-#> 11   1 2015-09-10 07:01:10 15.76469 -22.37959
-#> 12   1 2015-09-10 07:01:11 15.76469 -22.37960
-#> 13   1 2015-09-10 07:01:12 15.76469 -22.37960
-#> 14   1 2015-09-10 07:01:13 15.76469 -22.37960
-#> 15   1 2015-09-10 07:01:14 15.76469 -22.37960
-#> 16   1 2015-09-10 07:01:15 15.76468 -22.37960
-#> 17   1 2015-09-10 07:01:16 15.76468 -22.37960
-#> 18   1 2015-09-10 07:01:17 15.76468 -22.37960
-#> 19   1 2015-09-10 07:01:18 15.76468 -22.37960
-#> 20   1 2015-09-10 07:01:19 15.76468 -22.37960
-#> 21   1 2015-09-10 07:01:20 15.76468 -22.37960
-#> 22   1 2015-09-10 07:01:21 15.76468 -22.37960
-#> 23   1 2015-09-10 07:01:22 15.76468 -22.37960
-#> 24   1 2015-09-10 07:01:23 15.76468 -22.37960
-#> 25   1 2015-09-10 07:01:24 15.76468 -22.37960
-#> 26   1 2015-09-10 07:01:25 15.76468 -22.37960
-#> 27   1 2015-09-10 07:01:26 15.76468 -22.37960
-#> 28   1 2015-09-10 07:01:27 15.76468 -22.37960
-#> 29   1 2015-09-10 07:01:28 15.76468 -22.37960
-#> 30   1 2015-09-10 07:01:29 15.76468 -22.37960
-#> 31   1 2015-09-10 07:01:30 15.76468 -22.37960
-#> 32   1 2015-09-10 07:01:31 15.76468 -22.37960
-#> 33   1 2015-09-10 07:01:32 15.76469 -22.37960
-#> 34   1 2015-09-10 07:01:33 15.76469 -22.37960
-#> 35   1 2015-09-10 07:01:34 15.76469 -22.37960
-#> 36   1 2015-09-10 07:01:35 15.76469 -22.37960
-#> 37   1 2015-09-10 07:01:36 15.76469 -22.37960
-#> 38   1 2015-09-10 07:01:37 15.76469 -22.37960
-#> 39   1 2015-09-10 07:01:38 15.76469 -22.37960
-#> 40   1 2015-09-10 07:01:39 15.76469 -22.37960
-#> 41   1 2015-09-10 07:01:40 15.76469 -22.37960
-#> 42   1 2015-09-10 07:01:41 15.76469 -22.37960
-#> 43   1 2015-09-10 07:01:42 15.76469 -22.37960
-#> 44   1 2015-09-10 07:01:43 15.76469 -22.37960
-#> 45   1 2015-09-10 07:01:44 15.76469 -22.37960
-#> 46   1 2015-09-10 07:01:45 15.76469 -22.37960
-#> 47   1 2015-09-10 07:01:46 15.76469 -22.37960
-#> 48   1 2015-09-10 07:01:47 15.76469 -22.37960
-#> 49   1 2015-09-10 07:01:48 15.76469 -22.37960
-#> 50   1 2015-09-10 07:01:49 15.76469 -22.37959
-#> 51   1 2015-09-10 07:01:50 15.76469 -22.37959
-#> 52   1 2015-09-10 07:01:51 15.76470 -22.37959
-#> 53   1 2015-09-10 07:01:52 15.76470 -22.37959
-#> 54   1 2015-09-10 07:01:53 15.76470 -22.37959
-#> 55   1 2015-09-10 07:01:54 15.76470 -22.37960
-#> 56   1 2015-09-10 07:01:55 15.76470 -22.37960
-#> 57   1 2015-09-10 07:01:56 15.76471 -22.37960
-#> 58   1 2015-09-10 07:01:57 15.76471 -22.37959
-#> 59   1 2015-09-10 07:01:58 15.76471 -22.37959
-#> 60   1 2015-09-10 07:01:59 15.76471 -22.37959
-#> 61   2 2015-09-10 07:01:00 15.76459 -22.37971
-#> 62   2 2015-09-10 07:01:01 15.76459 -22.37971
-#> 63   2 2015-09-10 07:01:02 15.76459 -22.37971
-#> 64   2 2015-09-10 07:01:03 15.76459 -22.37971
-#> 65   2 2015-09-10 07:01:04 15.76459 -22.37971
-#> 66   2 2015-09-10 07:01:05 15.76459 -22.37971
-#> 67   2 2015-09-10 07:01:06 15.76459 -22.37971
-#> 68   2 2015-09-10 07:01:07 15.76459 -22.37971
-#> 69   2 2015-09-10 07:01:08 15.76459 -22.37971
-#> 70   2 2015-09-10 07:01:09 15.76459 -22.37971
-#> 71   2 2015-09-10 07:01:10 15.76459 -22.37971
-#> 72   2 2015-09-10 07:01:11 15.76459 -22.37971
-#> 73   2 2015-09-10 07:01:12 15.76459 -22.37971
-#> 74   2 2015-09-10 07:01:13 15.76459 -22.37971
-#> 75   2 2015-09-10 07:01:14 15.76459 -22.37971
-#> 76   2 2015-09-10 07:01:15 15.76459 -22.37971
-#> 77   2 2015-09-10 07:01:16 15.76459 -22.37971
-#> 78   2 2015-09-10 07:01:17 15.76459 -22.37971
-#> 79   2 2015-09-10 07:01:18 15.76459 -22.37971
-#> 80   2 2015-09-10 07:01:19 15.76459 -22.37971
-#> 81   2 2015-09-10 07:01:20 15.76459 -22.37971
-#> 82   2 2015-09-10 07:01:21 15.76459 -22.37971
-#> 83   2 2015-09-10 07:01:22 15.76459 -22.37971
-#> 84   2 2015-09-10 07:01:23 15.76459 -22.37971
-#> 85   2 2015-09-10 07:01:24 15.76459 -22.37971
-#> 86   2 2015-09-10 07:01:25 15.76458 -22.37971
-#> 87   2 2015-09-10 07:01:26 15.76459 -22.37971
-#> 88   2 2015-09-10 07:01:27 15.76459 -22.37971
-#> 89   2 2015-09-10 07:01:28 15.76459 -22.37971
-#> 90   2 2015-09-10 07:01:29 15.76458 -22.37971
-#> 91   2 2015-09-10 07:01:30 15.76458 -22.37971
-#> 92   2 2015-09-10 07:01:31 15.76457 -22.37971
-#> 93   2 2015-09-10 07:01:32 15.76456 -22.37971
-#> 94   2 2015-09-10 07:01:33 15.76455 -22.37972
-#> 95   2 2015-09-10 07:01:34 15.76455 -22.37972
-#> 96   2 2015-09-10 07:01:35 15.76455 -22.37973
-#> 97   2 2015-09-10 07:01:36 15.76455 -22.37973
-#> 98   2 2015-09-10 07:01:37 15.76455 -22.37974
-#> 99   2 2015-09-10 07:01:38 15.76455 -22.37974
-#> 100  2 2015-09-10 07:01:39 15.76455 -22.37975
-#> 101  2 2015-09-10 07:01:40 15.76455 -22.37975
-#> 102  2 2015-09-10 07:01:41 15.76454 -22.37976
-#> 103  2 2015-09-10 07:01:42 15.76455 -22.37976
-#> 104  2 2015-09-10 07:01:43 15.76455 -22.37976
-#> 105  2 2015-09-10 07:01:44 15.76455 -22.37977
-#> 106  2 2015-09-10 07:01:45 15.76456 -22.37977
-#> 107  2 2015-09-10 07:01:46 15.76457 -22.37978
-#> 108  2 2015-09-10 07:01:47 15.76458 -22.37978
-#> 109  2 2015-09-10 07:01:48 15.76459 -22.37979
-#> 110  2 2015-09-10 07:01:49 15.76459 -22.37979
-#> 111  2 2015-09-10 07:01:50 15.76460 -22.37980
-#> 112  2 2015-09-10 07:01:51 15.76461 -22.37980
-#> 113  2 2015-09-10 07:01:52 15.76461 -22.37981
-#> 114  2 2015-09-10 07:01:53 15.76461 -22.37981
-#> 115  2 2015-09-10 07:01:54 15.76462 -22.37981
-#> 116  2 2015-09-10 07:01:55 15.76463 -22.37982
-#> 117  2 2015-09-10 07:01:56 15.76463 -22.37982
-#> 118  2 2015-09-10 07:01:57 15.76464 -22.37982
-#> 119  2 2015-09-10 07:01:58 15.76465 -22.37982
-#> 120  2 2015-09-10 07:01:59 15.76466 -22.37982
 
 if (requireNamespace("ctmm", quietly = TRUE)) {
   tl <- as_telemetry(short_tracks)
   as_track(tl)
 }
-#> Minimum sampling interval of 1 seconds in 1
-#> Minimum sampling interval of 1 seconds in 2
-#> Track table [120 observations]
-#> Number of tracks:  2 
-#> Dimensions:  2D 
-#> Geographic:  TRUE 
-#> Projection:  +proj=tpeqd +lat_1=-22.3797489764867 +lon_1=15.7645721041225 +lat_2=-22.3796046594646 +lon_2=15.7646744509934 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs 
-#> Table class:  data frame
-#>     id                   t        x         y
-#> 1    1 2015-09-10 07:01:00 15.76468 -22.37961
-#> 2    1 2015-09-10 07:01:01 15.76469 -22.37960
-#> 3    1 2015-09-10 07:01:02 15.76469 -22.37960
-#> 4    1 2015-09-10 07:01:03 15.76469 -22.37960
-#> 5    1 2015-09-10 07:01:04 15.76470 -22.37960
-#> 6    1 2015-09-10 07:01:05 15.76469 -22.37960
-#> 7    1 2015-09-10 07:01:06 15.76469 -22.37960
-#> 8    1 2015-09-10 07:01:07 15.76469 -22.37959
-#> 9    1 2015-09-10 07:01:08 15.76469 -22.37959
-#> 10   1 2015-09-10 07:01:09 15.76469 -22.37959
-#> 11   1 2015-09-10 07:01:10 15.76469 -22.37959
-#> 12   1 2015-09-10 07:01:11 15.76469 -22.37960
-#> 13   1 2015-09-10 07:01:12 15.76469 -22.37960
-#> 14   1 2015-09-10 07:01:13 15.76469 -22.37960
-#> 15   1 2015-09-10 07:01:14 15.76469 -22.37960
-#> 16   1 2015-09-10 07:01:15 15.76468 -22.37960
-#> 17   1 2015-09-10 07:01:16 15.76468 -22.37960
-#> 18   1 2015-09-10 07:01:17 15.76468 -22.37960
-#> 19   1 2015-09-10 07:01:18 15.76468 -22.37960
-#> 20   1 2015-09-10 07:01:19 15.76468 -22.37960
-#> 21   1 2015-09-10 07:01:20 15.76468 -22.37960
-#> 22   1 2015-09-10 07:01:21 15.76468 -22.37960
-#> 23   1 2015-09-10 07:01:22 15.76468 -22.37960
-#> 24   1 2015-09-10 07:01:23 15.76468 -22.37960
-#> 25   1 2015-09-10 07:01:24 15.76468 -22.37960
-#> 26   1 2015-09-10 07:01:25 15.76468 -22.37960
-#> 27   1 2015-09-10 07:01:26 15.76468 -22.37960
-#> 28   1 2015-09-10 07:01:27 15.76468 -22.37960
-#> 29   1 2015-09-10 07:01:28 15.76468 -22.37960
-#> 30   1 2015-09-10 07:01:29 15.76468 -22.37960
-#> 31   1 2015-09-10 07:01:30 15.76468 -22.37960
-#> 32   1 2015-09-10 07:01:31 15.76468 -22.37960
-#> 33   1 2015-09-10 07:01:32 15.76469 -22.37960
-#> 34   1 2015-09-10 07:01:33 15.76469 -22.37960
-#> 35   1 2015-09-10 07:01:34 15.76469 -22.37960
-#> 36   1 2015-09-10 07:01:35 15.76469 -22.37960
-#> 37   1 2015-09-10 07:01:36 15.76469 -22.37960
-#> 38   1 2015-09-10 07:01:37 15.76469 -22.37960
-#> 39   1 2015-09-10 07:01:38 15.76469 -22.37960
-#> 40   1 2015-09-10 07:01:39 15.76469 -22.37960
-#> 41   1 2015-09-10 07:01:40 15.76469 -22.37960
-#> 42   1 2015-09-10 07:01:41 15.76469 -22.37960
-#> 43   1 2015-09-10 07:01:42 15.76469 -22.37960
-#> 44   1 2015-09-10 07:01:43 15.76469 -22.37960
-#> 45   1 2015-09-10 07:01:44 15.76469 -22.37960
-#> 46   1 2015-09-10 07:01:45 15.76469 -22.37960
-#> 47   1 2015-09-10 07:01:46 15.76469 -22.37960
-#> 48   1 2015-09-10 07:01:47 15.76469 -22.37960
-#> 49   1 2015-09-10 07:01:48 15.76469 -22.37960
-#> 50   1 2015-09-10 07:01:49 15.76469 -22.37959
-#> 51   1 2015-09-10 07:01:50 15.76469 -22.37959
-#> 52   1 2015-09-10 07:01:51 15.76470 -22.37959
-#> 53   1 2015-09-10 07:01:52 15.76470 -22.37959
-#> 54   1 2015-09-10 07:01:53 15.76470 -22.37959
-#> 55   1 2015-09-10 07:01:54 15.76470 -22.37960
-#> 56   1 2015-09-10 07:01:55 15.76470 -22.37960
-#> 57   1 2015-09-10 07:01:56 15.76471 -22.37960
-#> 58   1 2015-09-10 07:01:57 15.76471 -22.37959
-#> 59   1 2015-09-10 07:01:58 15.76471 -22.37959
-#> 60   1 2015-09-10 07:01:59 15.76471 -22.37959
-#> 61   2 2015-09-10 07:01:00 15.76459 -22.37971
-#> 62   2 2015-09-10 07:01:01 15.76459 -22.37971
-#> 63   2 2015-09-10 07:01:02 15.76459 -22.37971
-#> 64   2 2015-09-10 07:01:03 15.76459 -22.37971
-#> 65   2 2015-09-10 07:01:04 15.76459 -22.37971
-#> 66   2 2015-09-10 07:01:05 15.76459 -22.37971
-#> 67   2 2015-09-10 07:01:06 15.76459 -22.37971
-#> 68   2 2015-09-10 07:01:07 15.76459 -22.37971
-#> 69   2 2015-09-10 07:01:08 15.76459 -22.37971
-#> 70   2 2015-09-10 07:01:09 15.76459 -22.37971
-#> 71   2 2015-09-10 07:01:10 15.76459 -22.37971
-#> 72   2 2015-09-10 07:01:11 15.76459 -22.37971
-#> 73   2 2015-09-10 07:01:12 15.76459 -22.37971
-#> 74   2 2015-09-10 07:01:13 15.76459 -22.37971
-#> 75   2 2015-09-10 07:01:14 15.76459 -22.37971
-#> 76   2 2015-09-10 07:01:15 15.76459 -22.37971
-#> 77   2 2015-09-10 07:01:16 15.76459 -22.37971
-#> 78   2 2015-09-10 07:01:17 15.76459 -22.37971
-#> 79   2 2015-09-10 07:01:18 15.76459 -22.37971
-#> 80   2 2015-09-10 07:01:19 15.76459 -22.37971
-#> 81   2 2015-09-10 07:01:20 15.76459 -22.37971
-#> 82   2 2015-09-10 07:01:21 15.76459 -22.37971
-#> 83   2 2015-09-10 07:01:22 15.76459 -22.37971
-#> 84   2 2015-09-10 07:01:23 15.76459 -22.37971
-#> 85   2 2015-09-10 07:01:24 15.76459 -22.37971
-#> 86   2 2015-09-10 07:01:25 15.76458 -22.37971
-#> 87   2 2015-09-10 07:01:26 15.76459 -22.37971
-#> 88   2 2015-09-10 07:01:27 15.76459 -22.37971
-#> 89   2 2015-09-10 07:01:28 15.76459 -22.37971
-#> 90   2 2015-09-10 07:01:29 15.76458 -22.37971
-#> 91   2 2015-09-10 07:01:30 15.76458 -22.37971
-#> 92   2 2015-09-10 07:01:31 15.76457 -22.37971
-#> 93   2 2015-09-10 07:01:32 15.76456 -22.37971
-#> 94   2 2015-09-10 07:01:33 15.76455 -22.37972
-#> 95   2 2015-09-10 07:01:34 15.76455 -22.37972
-#> 96   2 2015-09-10 07:01:35 15.76455 -22.37973
-#> 97   2 2015-09-10 07:01:36 15.76455 -22.37973
-#> 98   2 2015-09-10 07:01:37 15.76455 -22.37974
-#> 99   2 2015-09-10 07:01:38 15.76455 -22.37974
-#> 100  2 2015-09-10 07:01:39 15.76455 -22.37975
-#> 101  2 2015-09-10 07:01:40 15.76455 -22.37975
-#> 102  2 2015-09-10 07:01:41 15.76454 -22.37976
-#> 103  2 2015-09-10 07:01:42 15.76455 -22.37976
-#> 104  2 2015-09-10 07:01:43 15.76455 -22.37976
-#> 105  2 2015-09-10 07:01:44 15.76455 -22.37977
-#> 106  2 2015-09-10 07:01:45 15.76456 -22.37977
-#> 107  2 2015-09-10 07:01:46 15.76457 -22.37978
-#> 108  2 2015-09-10 07:01:47 15.76458 -22.37978
-#> 109  2 2015-09-10 07:01:48 15.76459 -22.37979
-#> 110  2 2015-09-10 07:01:49 15.76459 -22.37979
-#> 111  2 2015-09-10 07:01:50 15.76460 -22.37980
-#> 112  2 2015-09-10 07:01:51 15.76461 -22.37980
-#> 113  2 2015-09-10 07:01:52 15.76461 -22.37981
-#> 114  2 2015-09-10 07:01:53 15.76461 -22.37981
-#> 115  2 2015-09-10 07:01:54 15.76462 -22.37981
-#> 116  2 2015-09-10 07:01:55 15.76463 -22.37982
-#> 117  2 2015-09-10 07:01:56 15.76463 -22.37982
-#> 118  2 2015-09-10 07:01:57 15.76464 -22.37982
-#> 119  2 2015-09-10 07:01:58 15.76465 -22.37982
-#> 120  2 2015-09-10 07:01:59 15.76466 -22.37982
 
 if (requireNamespace("moveHMM", quietly = TRUE)) {
   hhm <- as_moveHMM(short_tracks, type = "LL")
   as_track(hhm)
 }
-#> Track table [120 observations]
-#> Number of tracks:  2 
-#> Dimensions:  2D 
-#> Geographic:  TRUE 
-#> Projection:  +proj=longlat 
-#> Table class:  data frame
-#>     id                   t        x         y
-#> 1    1 2015-09-10 07:01:00 15.76468 -22.37961
-#> 2    1 2015-09-10 07:01:01 15.76469 -22.37960
-#> 3    1 2015-09-10 07:01:02 15.76469 -22.37960
-#> 4    1 2015-09-10 07:01:03 15.76469 -22.37960
-#> 5    1 2015-09-10 07:01:04 15.76470 -22.37960
-#> 6    1 2015-09-10 07:01:05 15.76469 -22.37960
-#> 7    1 2015-09-10 07:01:06 15.76469 -22.37960
-#> 8    1 2015-09-10 07:01:07 15.76469 -22.37959
-#> 9    1 2015-09-10 07:01:08 15.76469 -22.37959
-#> 10   1 2015-09-10 07:01:09 15.76469 -22.37959
-#> 11   1 2015-09-10 07:01:10 15.76469 -22.37959
-#> 12   1 2015-09-10 07:01:11 15.76469 -22.37960
-#> 13   1 2015-09-10 07:01:12 15.76469 -22.37960
-#> 14   1 2015-09-10 07:01:13 15.76469 -22.37960
-#> 15   1 2015-09-10 07:01:14 15.76469 -22.37960
-#> 16   1 2015-09-10 07:01:15 15.76468 -22.37960
-#> 17   1 2015-09-10 07:01:16 15.76468 -22.37960
-#> 18   1 2015-09-10 07:01:17 15.76468 -22.37960
-#> 19   1 2015-09-10 07:01:18 15.76468 -22.37960
-#> 20   1 2015-09-10 07:01:19 15.76468 -22.37960
-#> 21   1 2015-09-10 07:01:20 15.76468 -22.37960
-#> 22   1 2015-09-10 07:01:21 15.76468 -22.37960
-#> 23   1 2015-09-10 07:01:22 15.76468 -22.37960
-#> 24   1 2015-09-10 07:01:23 15.76468 -22.37960
-#> 25   1 2015-09-10 07:01:24 15.76468 -22.37960
-#> 26   1 2015-09-10 07:01:25 15.76468 -22.37960
-#> 27   1 2015-09-10 07:01:26 15.76468 -22.37960
-#> 28   1 2015-09-10 07:01:27 15.76468 -22.37960
-#> 29   1 2015-09-10 07:01:28 15.76468 -22.37960
-#> 30   1 2015-09-10 07:01:29 15.76468 -22.37960
-#> 31   1 2015-09-10 07:01:30 15.76468 -22.37960
-#> 32   1 2015-09-10 07:01:31 15.76468 -22.37960
-#> 33   1 2015-09-10 07:01:32 15.76469 -22.37960
-#> 34   1 2015-09-10 07:01:33 15.76469 -22.37960
-#> 35   1 2015-09-10 07:01:34 15.76469 -22.37960
-#> 36   1 2015-09-10 07:01:35 15.76469 -22.37960
-#> 37   1 2015-09-10 07:01:36 15.76469 -22.37960
-#> 38   1 2015-09-10 07:01:37 15.76469 -22.37960
-#> 39   1 2015-09-10 07:01:38 15.76469 -22.37960
-#> 40   1 2015-09-10 07:01:39 15.76469 -22.37960
-#> 41   1 2015-09-10 07:01:40 15.76469 -22.37960
-#> 42   1 2015-09-10 07:01:41 15.76469 -22.37960
-#> 43   1 2015-09-10 07:01:42 15.76469 -22.37960
-#> 44   1 2015-09-10 07:01:43 15.76469 -22.37960
-#> 45   1 2015-09-10 07:01:44 15.76469 -22.37960
-#> 46   1 2015-09-10 07:01:45 15.76469 -22.37960
-#> 47   1 2015-09-10 07:01:46 15.76469 -22.37960
-#> 48   1 2015-09-10 07:01:47 15.76469 -22.37960
-#> 49   1 2015-09-10 07:01:48 15.76469 -22.37960
-#> 50   1 2015-09-10 07:01:49 15.76469 -22.37959
-#> 51   1 2015-09-10 07:01:50 15.76469 -22.37959
-#> 52   1 2015-09-10 07:01:51 15.76470 -22.37959
-#> 53   1 2015-09-10 07:01:52 15.76470 -22.37959
-#> 54   1 2015-09-10 07:01:53 15.76470 -22.37959
-#> 55   1 2015-09-10 07:01:54 15.76470 -22.37960
-#> 56   1 2015-09-10 07:01:55 15.76470 -22.37960
-#> 57   1 2015-09-10 07:01:56 15.76471 -22.37960
-#> 58   1 2015-09-10 07:01:57 15.76471 -22.37959
-#> 59   1 2015-09-10 07:01:58 15.76471 -22.37959
-#> 60   1 2015-09-10 07:01:59 15.76471 -22.37959
-#> 61   2 2015-09-10 07:01:00 15.76459 -22.37971
-#> 62   2 2015-09-10 07:01:01 15.76459 -22.37971
-#> 63   2 2015-09-10 07:01:02 15.76459 -22.37971
-#> 64   2 2015-09-10 07:01:03 15.76459 -22.37971
-#> 65   2 2015-09-10 07:01:04 15.76459 -22.37971
-#> 66   2 2015-09-10 07:01:05 15.76459 -22.37971
-#> 67   2 2015-09-10 07:01:06 15.76459 -22.37971
-#> 68   2 2015-09-10 07:01:07 15.76459 -22.37971
-#> 69   2 2015-09-10 07:01:08 15.76459 -22.37971
-#> 70   2 2015-09-10 07:01:09 15.76459 -22.37971
-#> 71   2 2015-09-10 07:01:10 15.76459 -22.37971
-#> 72   2 2015-09-10 07:01:11 15.76459 -22.37971
-#> 73   2 2015-09-10 07:01:12 15.76459 -22.37971
-#> 74   2 2015-09-10 07:01:13 15.76459 -22.37971
-#> 75   2 2015-09-10 07:01:14 15.76459 -22.37971
-#> 76   2 2015-09-10 07:01:15 15.76459 -22.37971
-#> 77   2 2015-09-10 07:01:16 15.76459 -22.37971
-#> 78   2 2015-09-10 07:01:17 15.76459 -22.37971
-#> 79   2 2015-09-10 07:01:18 15.76459 -22.37971
-#> 80   2 2015-09-10 07:01:19 15.76459 -22.37971
-#> 81   2 2015-09-10 07:01:20 15.76459 -22.37971
-#> 82   2 2015-09-10 07:01:21 15.76459 -22.37971
-#> 83   2 2015-09-10 07:01:22 15.76459 -22.37971
-#> 84   2 2015-09-10 07:01:23 15.76459 -22.37971
-#> 85   2 2015-09-10 07:01:24 15.76459 -22.37971
-#> 86   2 2015-09-10 07:01:25 15.76458 -22.37971
-#> 87   2 2015-09-10 07:01:26 15.76459 -22.37971
-#> 88   2 2015-09-10 07:01:27 15.76459 -22.37971
-#> 89   2 2015-09-10 07:01:28 15.76459 -22.37971
-#> 90   2 2015-09-10 07:01:29 15.76458 -22.37971
-#> 91   2 2015-09-10 07:01:30 15.76458 -22.37971
-#> 92   2 2015-09-10 07:01:31 15.76457 -22.37971
-#> 93   2 2015-09-10 07:01:32 15.76456 -22.37971
-#> 94   2 2015-09-10 07:01:33 15.76455 -22.37972
-#> 95   2 2015-09-10 07:01:34 15.76455 -22.37972
-#> 96   2 2015-09-10 07:01:35 15.76455 -22.37973
-#> 97   2 2015-09-10 07:01:36 15.76455 -22.37973
-#> 98   2 2015-09-10 07:01:37 15.76455 -22.37974
-#> 99   2 2015-09-10 07:01:38 15.76455 -22.37974
-#> 100  2 2015-09-10 07:01:39 15.76455 -22.37975
-#> 101  2 2015-09-10 07:01:40 15.76455 -22.37975
-#> 102  2 2015-09-10 07:01:41 15.76454 -22.37976
-#> 103  2 2015-09-10 07:01:42 15.76455 -22.37976
-#> 104  2 2015-09-10 07:01:43 15.76455 -22.37976
-#> 105  2 2015-09-10 07:01:44 15.76455 -22.37977
-#> 106  2 2015-09-10 07:01:45 15.76456 -22.37977
-#> 107  2 2015-09-10 07:01:46 15.76457 -22.37978
-#> 108  2 2015-09-10 07:01:47 15.76458 -22.37978
-#> 109  2 2015-09-10 07:01:48 15.76459 -22.37979
-#> 110  2 2015-09-10 07:01:49 15.76459 -22.37979
-#> 111  2 2015-09-10 07:01:50 15.76460 -22.37980
-#> 112  2 2015-09-10 07:01:51 15.76461 -22.37980
-#> 113  2 2015-09-10 07:01:52 15.76461 -22.37981
-#> 114  2 2015-09-10 07:01:53 15.76461 -22.37981
-#> 115  2 2015-09-10 07:01:54 15.76462 -22.37981
-#> 116  2 2015-09-10 07:01:55 15.76463 -22.37982
-#> 117  2 2015-09-10 07:01:56 15.76463 -22.37982
-#> 118  2 2015-09-10 07:01:57 15.76464 -22.37982
-#> 119  2 2015-09-10 07:01:58 15.76465 -22.37982
-#> 120  2 2015-09-10 07:01:59 15.76466 -22.37982
+}
 
 
diff --git a/docs/reference/projection.html b/docs/reference/projection.html index b2e7f42..6676850 100644 --- a/docs/reference/projection.html +++ b/docs/reference/projection.html @@ -105,95 +105,16 @@

Examples
data(short_tracks)
 
 projection(short_tracks)
-#> Coordinate Reference System:
-#>   User input: +proj=longlat 
-#>   wkt:
-#> GEOGCRS["unknown",
-#>     DATUM["World Geodetic System 1984",
-#>         ELLIPSOID["WGS 84",6378137,298.257223563,
-#>             LENGTHUNIT["metre",1]],
-#>         ID["EPSG",6326]],
-#>     PRIMEM["Greenwich",0,
-#>         ANGLEUNIT["degree",0.0174532925199433],
-#>         ID["EPSG",8901]],
-#>     CS[ellipsoidal,2],
-#>         AXIS["longitude",east,
-#>             ORDER[1],
-#>             ANGLEUNIT["degree",0.0174532925199433,
-#>                 ID["EPSG",9122]]],
-#>         AXIS["latitude",north,
-#>             ORDER[2],
-#>             ANGLEUNIT["degree",0.0174532925199433,
-#>                 ID["EPSG",9122]]]]
+#> [1] NA
 tracks_projected <- project(short_tracks, "+proj=somerc")
+#> Warning: PROJ support is provided by the sf and terra packages among others
+#> Error in project(short_tracks, "+proj=somerc"): xy not numeric
 projection(tracks_projected)
-#> Coordinate Reference System:
-#>   User input: +proj=somerc 
-#>   wkt:
-#> PROJCRS["unknown",
-#>     BASEGEOGCRS["unknown",
-#>         DATUM["World Geodetic System 1984",
-#>             ELLIPSOID["WGS 84",6378137,298.257223563,
-#>                 LENGTHUNIT["metre",1]],
-#>             ID["EPSG",6326]],
-#>         PRIMEM["Greenwich",0,
-#>             ANGLEUNIT["degree",0.0174532925199433],
-#>             ID["EPSG",8901]]],
-#>     CONVERSION["unknown",
-#>         METHOD["Hotine Oblique Mercator (variant B)",
-#>             ID["EPSG",9815]],
-#>         PARAMETER["Latitude of projection centre",0,
-#>             ANGLEUNIT["degree",0.0174532925199433],
-#>             ID["EPSG",8811]],
-#>         PARAMETER["Longitude of projection centre",0,
-#>             ANGLEUNIT["degree",0.0174532925199433],
-#>             ID["EPSG",8812]],
-#>         PARAMETER["Azimuth of initial line",90,
-#>             ANGLEUNIT["degree",0.0174532925199433],
-#>             ID["EPSG",8813]],
-#>         PARAMETER["Angle from Rectified to Skew Grid",90,
-#>             ANGLEUNIT["degree",0.0174532925199433],
-#>             ID["EPSG",8814]],
-#>         PARAMETER["Scale factor on initial line",1,
-#>             SCALEUNIT["unity",1],
-#>             ID["EPSG",8815]],
-#>         PARAMETER["Easting at projection centre",0,
-#>             LENGTHUNIT["metre",1],
-#>             ID["EPSG",8816]],
-#>         PARAMETER["Northing at projection centre",0,
-#>             LENGTHUNIT["metre",1],
-#>             ID["EPSG",8817]]],
-#>     CS[Cartesian,2],
-#>         AXIS["(E)",east,
-#>             ORDER[1],
-#>             LENGTHUNIT["metre",1,
-#>                 ID["EPSG",9001]]],
-#>         AXIS["(N)",north,
-#>             ORDER[2],
-#>             LENGTHUNIT["metre",1,
-#>                 ID["EPSG",9001]]]]
+#> Error in h(simpleError(msg, call)): error in evaluating the argument 'x' in selecting a method for function 'projection': object 'tracks_projected' not found
 projection(tracks_projected) <- "+proj=longlat"
+#> Error in projection(tracks_projected) <- "+proj=longlat": object 'tracks_projected' not found
 projection(tracks_projected)
-#> Coordinate Reference System:
-#>   User input: +proj=longlat 
-#>   wkt:
-#> GEOGCRS["unknown",
-#>     DATUM["World Geodetic System 1984",
-#>         ELLIPSOID["WGS 84",6378137,298.257223563,
-#>             LENGTHUNIT["metre",1]],
-#>         ID["EPSG",6326]],
-#>     PRIMEM["Greenwich",0,
-#>         ANGLEUNIT["degree",0.0174532925199433],
-#>         ID["EPSG",8901]],
-#>     CS[ellipsoidal,2],
-#>         AXIS["longitude",east,
-#>             ORDER[1],
-#>             ANGLEUNIT["degree",0.0174532925199433,
-#>                 ID["EPSG",9122]]],
-#>         AXIS["latitude",north,
-#>             ORDER[2],
-#>             ANGLEUNIT["degree",0.0174532925199433,
-#>                 ID["EPSG",9122]]]]
+#> Error in h(simpleError(msg, call)): error in evaluating the argument 'x' in selecting a method for function 'projection': object 'tracks_projected' not found
 
 

diff --git a/docs/search.json b/docs/search.json index 38818b8..ca46855 100644 --- a/docs/search.json +++ b/docs/search.json @@ -1 +1 @@ -[{"path":"https://swarm-lab.github.io/trackdf/articles/z1_install.html","id":"development-version","dir":"Articles","previous_headings":"","what":"1.1 - Development version","title":"1 - Installing trackdf","text":"","code":"if (requireNamespace(\"remotes\", quietly = TRUE)) { remotes::install_github(\"swarm-lab/trackdf\") }"},{"path":"https://swarm-lab.github.io/trackdf/articles/z1_install.html","id":"cran-version","dir":"Articles","previous_headings":"","what":"1.2 - CRAN version","title":"1 - Installing trackdf","text":"","code":"install.packages(\"trackdf\")"},{"path":"https://swarm-lab.github.io/trackdf/articles/z2_build.html","id":"using-video-tracking-data","dir":"Articles","previous_headings":"","what":"2.1 - Using video tracking data","title":"2 - Building a track table","text":"","code":"library(trackdf) library(lubridate) if (requireNamespace(\"readr\", quietly = TRUE) & requireNamespace(\"dplyr\", quietly = TRUE)) { library(readr) library(dplyr) raw <- read_csv(system.file(\"extdata/video/01.csv\", package = \"trackdf\")) %>% filter(., !ignore) } else { raw <- read.csv(system.file(\"extdata/video/01.csv\", package = \"trackdf\")) raw <- raw[!raw$ignore, ] } raw ## # A tibble: 21,982 × 8 ## id x y size frame track ignore track_fixed ## ## 1 1 629. 882. 1154 1 1 FALSE 1 ## 2 2 1056. 657. 1064 1 2 FALSE 2 ## 3 3 508. 375. 1624 1 3 FALSE 3 ## 4 4 1278. 374. 1443 1 4 FALSE 4 ## 5 5 1379. 343. 1431 1 5 FALSE 5 ## 6 6 1137. 175. 1321 1 6 FALSE 6 ## 7 7 737. 116. 1419 1 7 FALSE 7 ## 8 8 922. 103. 1237 1 8 FALSE 8 ## 9 1 629. 882. 1148 2 1 FALSE 1 ## 10 2 1056. 656. 1068 2 2 FALSE 2 ## # … with 21,972 more rows vid_df <- track(x = raw$x, y = raw$y, t = raw$frame, id = raw$track, origin = \"2019-03-24 12:55:23\", period = period(\"1 second\") / 30, tz = \"America/New_York\", table = \"df\") head(vid_df) ## Track table [6 observations] ## Number of tracks: 6 ## Dimensions: 2D ## Geographic: FALSE ## Table class: data frame ## id t x y ## 1 1 2019-03-24 12:55:23 629.3839 882.4783 ## 2 2 2019-03-24 12:55:23 1056.1692 656.5207 ## 3 3 2019-03-24 12:55:23 508.0092 375.2451 ## 4 4 2019-03-24 12:55:23 1277.6466 373.7491 ## 5 5 2019-03-24 12:55:23 1379.2844 343.0853 ## 6 6 2019-03-24 12:55:23 1137.1378 174.5110 vid_tbl <- track(x = raw$x, y = raw$y, t = raw$frame, id = raw$track, origin = \"2019-03-24 12:55:23\", period = period(\"1 second\") / 30, tz = \"America/New_York\", table = \"tbl\") print(vid_tbl) ## Track table [21982 observations] ## Number of tracks: 83 ## Dimensions: 2D ## Geographic: FALSE ## Table class: tibble ## # A tibble: 21,982 × 4 ## id t x y ## ## 1 1 2019-03-24 12:55:23 629. 882. ## 2 2 2019-03-24 12:55:23 1056. 657. ## 3 3 2019-03-24 12:55:23 508. 375. ## 4 4 2019-03-24 12:55:23 1278. 374. ## 5 5 2019-03-24 12:55:23 1379. 343. ## 6 6 2019-03-24 12:55:23 1137. 175. ## 7 7 2019-03-24 12:55:23 737. 116. ## 8 8 2019-03-24 12:55:23 922. 103. ## 9 1 2019-03-24 12:55:23 629. 882. ## 10 2 2019-03-24 12:55:23 1056. 656. ## # … with 21,972 more rows vid_dt <- track(x = raw$x, y = raw$y, t = raw$frame, id = raw$track, origin = \"2019-03-24 12:55:23\", period = period(\"1 second\") / 30, tz = \"America/New_York\", table = \"dt\") vid_dt ## Track table [21982 observations] ## Number of tracks: 83 ## Dimensions: 2D ## Geographic: FALSE ## Table class: data table ## id t x y ## 1: 1 2019-03-24 12:55:23 629.3839 882.4783 ## 2: 2 2019-03-24 12:55:23 1056.1692 656.5207 ## 3: 3 2019-03-24 12:55:23 508.0092 375.2451 ## 4: 4 2019-03-24 12:55:23 1277.6466 373.7491 ## 5: 5 2019-03-24 12:55:23 1379.2844 343.0853 ## --- ## 21978: 82 2019-03-24 12:56:56 580.7614 587.2513 ## 21979: 34 2019-03-24 12:56:56 493.5477 529.5454 ## 21980: 47 2019-03-24 12:56:56 498.8001 432.5990 ## 21981: 58 2019-03-24 12:56:56 562.6123 266.9754 ## 21982: 67 2019-03-24 12:56:56 1046.3904 146.4723"},{"path":"https://swarm-lab.github.io/trackdf/articles/z2_build.html","id":"using-gps-tracker-data","dir":"Articles","previous_headings":"","what":"2.2 - Using GPS tracker data","title":"2 - Building a track table","text":"","code":"if (requireNamespace(\"readr\", quietly = TRUE) & requireNamespace(\"dplyr\", quietly = TRUE)) { raw <- read_csv(system.file(\"extdata/gps/01.csv\", package = \"trackdf\")) %>% na.omit() } else { raw <- read.csv(system.file(\"extdata/gps/01.csv\", package = \"trackdf\")) raw <- raw[complete.cases(raw), ] } raw ## # A tibble: 3,596 × 4 ## date time lon lat ##