Description Usage Arguments Value Author(s) See Also Examples
This function aligns movement data to a uniform time scale with a uniform temporal resolution throughout the complete movement sequence.
This prepares the provided movement data to be interpretable by frames_spatial
, which necessitates a uniform time scale and
a consistent, unique temporal resolution for all moving individuals to turn recording times into frame times.
1 2 3 4 5 6 7 | align_move(
m,
res = "min",
digit = "min",
unit = "secs",
spaceMethod = "greatcircle"
)
|
m |
|
res |
either numeric, representing the temporal resolution, to which
|
digit |
either numeric, indicating to which digits of a specifc unit (see argument
|
unit |
character, either |
spaceMethod |
character, either |
Aligned move
or moveStack
, ready to be used with frames_spatial
-
Jakob Schwalb-Willmann
df2move
frames_spatial
frames_graph
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | library(moveVis)
library(move)
data("move_data")
# the tracks in move_data have irregular timestamps and sampling rates.
# print unique timestamps and timeLag
unique(timestamps(move_data))
unique(unlist(timeLag(move_data, units = "secs")))
# use align_move to correct move_data to a uniform time scale and lag using interpolation.
# resolution of 4 minutes (240 seconds) at digit 0 (:00 seconds) per timestamp:
m <- align_move(move_data, res = 240, digit = 0, unit = "secs")
unique(unlist(timeLag(m, units = "secs")))
# resolution of 1 hour (3600 seconds) at digit 0 (:00 seconds) per timestamp:
m <- align_move(move_data, res = 3600, digit = 0, unit = "secs")
unique(unlist(timeLag(m, units = "secs")))
# resolution of 1 hour (15 seconds) at digit 0 (:00 seconds) per timestamp:
m <- align_move(move_data, res = 15, digit = 0, unit = "secs")
unique(unlist(timeLag(m, units = "secs")))
# resolution of 1 hour:
m <- align_move(move_data, res = 60, unit = "mins")
unique(unlist(timeLag(m, units = "secs")))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.