Filters data between start and end time

# S3 method for eyer
filter_times(obj, times, data_fields = c(),
  raw_times = FALSE, recalculate_times = FALSE)

Arguments

obj

Eyer object to filted data from

times

is a dataframe or a numeric(2) start and end to filter parts of the eyetracking. If it is set, start and end are ignored

data_fields

list of data fields (in obj$data) to filter. If empty, all fields are filtered

raw_times

if TRUE, uses obj$info$start_time to calculate times to filter. Useful if the data have 0 based times since start, but we want to filter based on other values.

recalculate_times

If true, recalculates times to begin at 0 again. Changes obj$info$start_time.

Value

object with filtered data.