export_confounds_to_csv: Export confounds data to CSV files

View source: R/pipeline-confounds.R

export_confounds_to_csvR Documentation

Export confounds data to CSV files

Description

Exports each block's confounds data to a separate CSV file. Each file will contain all pupil steps (e.g., pupil_raw, pupil_clean) as columns.

Usage

export_confounds_to_csv(
  confounds_list,
  output_dir,
  filename_prefix,
  verbose,
  run_num = NULL
)

Arguments

confounds_list

A nested list structure containing confounds data

output_dir

The directory where CSV files will be saved

filename_prefix

Either a string prefix for filenames or a function that takes a block name and returns a prefix

verbose

A flag to indicate whether to print progress messages

run_num

The run number

Value

Invisibly returns a vector of created file paths


eyeris documentation built on July 3, 2025, 9:08 a.m.