View source: R/utils-render_report.R
| compute_run_data_loss | R Documentation |
Calculates the proportion of samples in the raw pupil timeseries that are invalid (i.e., missing/during a blink, or off-screen) and expresses it as a percentage. This surfaces data loss directly in the report to reinforce workflow transparency.
compute_run_data_loss(eyeris, run_num, eye_suffix = NULL)
eyeris |
An |
run_num |
Run identifier (numeric or character, e.g. |
eye_suffix |
Optional eye suffix (e.g., "eye-L", "eye-R") used to select the correct eye from a binocular object |
Prefers the canonical prop_invalid metric stored in
eyeris$confounds$unepoched_timeseries (computed by
summarize_confounds()). Falls back to computing the proportion of
missing samples directly from the raw timeseries when confounds are
unavailable.
A numeric percentage in [0, 100], or NA_real_ when it cannot be
determined
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.