
Prepare Gazepoint EDA input for external PsPM-style workflows
Source:R/external-eda-method-bridges.R
prepare_gazepoint_pspm_input.RdPrepares a clean Gazepoint EDA/conductance time-series table that can be exported for external PsPM-style workflows. This function does not run PsPM and does not attempt to reproduce PsPM internally.
Usage
prepare_gazepoint_pspm_input(
data,
eda_col = NULL,
time_col = NULL,
group_cols = NULL,
sampling_rate = NULL,
time_unit = c("auto", "ms", "seconds", "samples"),
convert_resistance_to_us = FALSE,
min_finite_prop = 0.5,
output_dir = NULL,
prefix = "gazepoint_pspm"
)Arguments
- data
A Gazepoint biometric data frame, or a list containing one.
- eda_col
Optional EDA/conductance column. If omitted, the function prefers
GSR_USwhen available.- time_col
Optional time/counter column.
- group_cols
Optional grouping columns.
- sampling_rate
Optional sampling rate in Hz, used when the time column is a sample counter.
- time_unit
Unit of
time_col.- convert_resistance_to_us
If
TRUE, convert a selected resistance-likeGSRcolumn to microsiemens as1,000,000 / GSR. The default isFALSEbecause this conversion should be used only when the user has verified thatGSRis resistance-like andGSR_USis unavailable.- min_finite_prop
Minimum finite proportion required for a group to be labelled ready.
- output_dir
Optional folder where CSV files should be written.
- prefix
File prefix used when
output_diris supplied.