knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(navr) obj <- navr_object
Navr object can be filtered by time with filter_times
function. The function takes either real time as is in the $timestamp
column or can take time_since_start
times if zero_based = TRUE
. For that your object needs to be preprocessed with either add_time_since_start
, add_time_columns
or add_columns_navr
. See loading and preprocessing vignette.
So if you say for example only the first 10 seconds of your obj, you can do the following
obj_prep <- prepare_navr(obj) obj_first10 <- filter_times(obj_prep, c(0,10), zero_based=TRUE)
If you on the other hand want to filter as per real timestamps, you can simply do so with
head(obj_prep$data[,1:5]) obj_filtered <- filter_times(obj_prep, c(58250,58255)) head(obj_filtered$data[,1:5])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.