interpolate_fmri_epochs: Interpolate an aligned fmri_ts object onto a consistent time...

View source: R/event_lock_timeseries.R

interpolate_fmri_epochsR Documentation

Interpolate an aligned fmri_ts object onto a consistent time grid with respect to a target event

Description

Interpolate an aligned fmri_ts object onto a consistent time grid with respect to a target event

Usage

interpolate_fmri_epochs(
  a_obj,
  evt_time = "evt_time",
  time_before = -3,
  time_after = 3,
  output_resolution = 1,
  group_by = NULL,
  time_audit = FALSE
)

Arguments

a_obj

an fmri_ts object that has data aligned to an event of interest

evt_time

column name in a_obj event data to which time series should be aligned and interpolated

time_before

The earliest time point (in seconds) relative to the event to be output in interpolation

time_after

The latest time point (in seconds) relative to the event to be output in interpolation

output_resolution

The timestep (in seconds) used for interpolation

group_by

a character vector of keying variables used for aggregation of data prior to interpolation

time_audit

If TRUE, additional columns will be added to the output showing how alignment is calculated vis-a-vis event timing

Author(s)

Michael Hallquist


UNCDEPENdLab/fmri.pipeline documentation built on April 3, 2025, 3:21 p.m.