event_matrix | R Documentation |
Create a continuous event set from a matrix.
event_matrix(mat, name, onsets, blockids = rep(1, ncol(mat)), durations = NULL)
mat |
A matrix of continuous event values (one row per event). |
name |
Name for the event set. |
onsets |
Numeric vector of onsets. |
blockids |
Numeric vector of block IDs (default: rep(1, ncol(mat))). |
durations |
Numeric vector of durations (default: NULL). |
An object of class "event_matrix" and "event_seq".
mat <- matrix(rnorm(200), 100, 2)
onsets <- seq(1, 1000, length.out = 100)
durations <- rep(1, 100)
blockids <- rep(1, 100)
eset <- event_matrix(mat, "eset", onsets, durations, blockids)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.