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 rows, with confound metrics as columns.
export_confounds_to_csv(
confounds_list,
output_dir,
filename_prefix,
verbose,
run_num = NULL
)
Invisibly returns a vector of created file paths
A nested list structure containing confounds data
The directory where CSV files will be saved
Either a string prefix for filenames or a function that takes a block name and returns a prefix
A flag to indicate whether to print progress messages
The run number