Zero bases timestamps (substracts start_time) and saves new start time information in the obj$info$start_time

change_timestamps_start(obj, start_time, new_start_time = start_time, ...)

# S3 method for pupilr
change_timestamps_start(obj, start_time, new_start_time = start_time)

# S3 method for surfaces
change_timestamps_start(obj, start_time, new_start_time = start_time)

# S3 method for surface.item
change_timestamps_start(obj, start_time, new_start_time = start_time)

Arguments

obj

object which timestamps should be recomputed

start_time

numeric value to be substracted from timestamps

new_start_time

numeric value to be inserted as the new start. Optional, defaults to start_time

...

Value

Methods (by class)

  • pupilr: Changes timestamps in all available data (both main and surface data)

  • surfaces: Changes timestamps in all sufaces

  • surface.item: Changes timestamps in a given surface.item