View source: R/get_frametimes.R
get_frametimes | R Documentation |
This function extracts the timestamps associated with each frame from a moveVis
object created using frames_spatial
or frames_graph
and returns them as a vector.
get_frametimes(frames)
frames |
an object of class |
A POSIXct vector of timestamps representing the time associated with each frame.
frames_spatial
frames_graph
library(moveVis)
library(move)
data("move_data")
# align movement
m <- align_move(move_data, res = 4, unit = "mins")
## Not run:
frames <- frames_spatial(m, map_service = "osm", map_type = "watercolor")
frames.ts <- get_frametimes(frames)
print(frames.ts)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.