get_frametimes: Get frame times from frames

View source: R/get_frametimes.R

get_frametimesR Documentation

Get frame times from frames

Description

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.

Usage

get_frametimes(frames)

Arguments

frames

an object of class moveVis created with frames_spatial.

Value

A POSIXct vector of timestamps representing the time associated with each frame.

See Also

frames_spatial frames_graph

Examples

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)


16EAGLE/moveVis documentation built on March 4, 2024, 1:35 a.m.