split_onsets.event_term: Split onsets of an event_term object

View source: R/event_vector.R

split_onsets.event_termR Documentation

Split onsets of an event_term object

Description

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 class '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

Value

A list of numeric vectors representing the split onsets for each factor level or block identifier


bbuchsbaum/fmrireg documentation built on May 16, 2023, 10:56 a.m.