AdjustTimes: Adjust trial times using a trial attribute

Description Usage Arguments Value

Description

Adjust trial times using a trial attribute

Usage

1
AdjustTimes(x, event = lwl_opts$get("alignment_event"))

Arguments

x

a Trial or a TrialList object

event

the name of the Trial attribute to be used as time 0. The default is "TargetOnset".

Value

the Time column of the Trial(s) is updated so that time 0 occurs at the time given by attribute. For example, if attr(trial, "TargetOnset") is 1000 (ms), then the frame in the Time column that is closest to 1000 gets the new value 0 and all other frames and time-related attributes are updated relative to this value.


tjmahr/lookr documentation built on May 31, 2019, 3:41 p.m.