TimeSlice: Extract an interval of time in a Trial

Description Usage Arguments Value

Description

Extract an interval of time in a Trial

Usage

1
2
TimeSlice(x, from = lwl_opts$get("timeslice_start"),
  to = lwl_opts$get("timeslice_end"))

Arguments

x

a Trial or a TrialList object

from

the time at which to start slicing. This value can be a character string naming a valid timing attribute of the Trial (e.g., "TargetOnset"), a numeric value specifying a particular time, or NULL in which case the function slices from the first frame of time.

to

time to which to finish slicing. The parameter may be of the same classes as described above for from, but when NULL is passed a value, the final time frame is used for slicing.

Value

the Time column of the Trial(s) is updated so that minimum time is within one frame of from and the maximum time is within one frame of to. The updated Trial(s) also has the added attribute "NumberOfFrames".


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