align_move.Rd
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.
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
-
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")))