event_variable | R Documentation |
Create a continuous event sequence from a numeric vector.
event_variable(vec, name, onsets, blockids = 1, durations = 0)
vec |
Numeric vector representing continuous event values. |
name |
Name of the event sequence. |
onsets |
Numeric vector of onsets. |
blockids |
Numeric vector of block IDs (default: 1). |
durations |
Numeric vector of durations (default: 0). |
An object of class "event_variable" and "event_seq".
event_factor
evar <- event_variable(c(1, 2, 3, 4, 5, 6), "example_var", onsets = seq(1, 100, length.out = 6))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.