event_basis | R Documentation |
Create an event set from a ParametricBasis object.
event_basis(
basis,
onsets,
blockids = 1,
durations = 0,
subset = rep(TRUE, length(onsets))
)
basis |
A ParametricBasis object. |
onsets |
Numeric vector of onsets. |
blockids |
Numeric vector of block IDs (default: 1). |
durations |
Numeric vector of durations (default: 0). |
subset |
Logical vector for subsetting (default: rep(TRUE, length(onsets))). |
An object of class "event_basis" and "event_seq".
basis <- BSpline(1:21, 3)
onsets <- seq(0, 20, length.out = 21)
blockids <- rep(1, length(onsets))
ebasis <- event_basis(basis, onsets, blockids)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.