Getters

Filtering time

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