Make a trial

make_trial(trial_num, event_names, onsets, durations)

Arguments

trial_num

integer, the trial number

event_names

character vector, names from event_vectors matrix for the events that appear in the trial

onsets

integer vector, onset times for each event listed in event_names

durations

integer vector, durations for each event listed in event_names

Value

data.frame

Examples

make_trial(1,event_names=c("A","B"),c(1,100),duration=50)
#>   trial_num event onset duration offset
#> 1         1     A     1       50     51
#> 2         1     B   100       50    150