This function splits the onsets of an event_term object based on its factor levels or block identifiers. It is useful for processing fMRI data when analyzing event-related designs with multiple conditions or blocks.
Usage
# S3 method for event_term
split_onsets(x, sframe, global = FALSE, blocksplit = FALSE, ...)
Arguments
- x
An event_term object
- sframe
A data frame representing the sampling frame
- global
A logical value indicating whether to use global onsets (default: FALSE)
- blocksplit
A logical value indicating whether to split onsets by block identifiers (default: FALSE)
- ...
Additional arguments passed to other methods