event_variable: Create a continuous event sequence from a numeric vector.

View source: R/event_vector.R

event_variableR Documentation

Create a continuous event sequence from a numeric vector.

Description

Create a continuous event sequence from a numeric vector.

Usage

event_variable(vec, name, onsets, blockids = 1, durations = 0)

Arguments

vec

Numeric vector representing continuous event values.

name

Name of the event sequence.

onsets

Numeric vector of onsets.

blockids

Numeric vector of block IDs (default: 1).

durations

Numeric vector of durations (default: 0).

Value

An object of class "event_variable" and "event_seq".

See Also

event_factor

Examples

evar <- event_variable(c(1, 2, 3, 4, 5, 6), "example_var", onsets = seq(1, 100, length.out = 6))


bbuchsbaum/fmrireg documentation built on March 1, 2025, 11:20 a.m.