event_factor | R Documentation |
Create a categorical event sequence from a factor.
event_factor(
fac,
name,
onsets,
blockids = rep(1, length(fac)),
durations = rep(0, length(fac))
)
fac |
A factor representing the categorical event sequence. |
name |
Name of the event sequence. |
onsets |
Numeric vector of onsets. |
blockids |
Numeric vector of block IDs (default: rep(1, length(fac))). |
durations |
Numeric vector of durations (default: rep(0, length(fac))). |
An object of class "event_factor" and "event_seq".
event_model
efac <- event_factor(factor(c("a", "b", "c", "a", "b", "c")), "abc",
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.