EV | R Documentation |
Factory function for creating event objects (e.g. event_factor, event_variable, event_basis, event_matrix) based on the type of input values.
EV(
vals,
name,
onsets,
blockids,
durations = 1,
subset = rep(TRUE, length(onsets))
)
vals |
Event values. |
name |
Name of the event variable. |
onsets |
Numeric vector of event onsets. |
blockids |
Numeric vector of block IDs. |
durations |
Numeric vector of event durations (or scalar). |
subset |
Logical vector indicating which events to keep. |
An event object.
ev_fac <- EV(factor(c("A", "B", "C")), "fac", onsets = c(1, 10, 20), blockids = rep(1, 3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.