View source: R/upsample_gaze.R
upsample_gaze | R Documentation |
Increase the sampling frequency to target_hz
Hz by inserting additional rows.
Missing values in gaze and pupil data will be preserved for later interpolation.
upsample_gaze(
x,
pupil_cols = c("Pupil_Diameter"),
gaze_cols = c("x_pred_normalised", "y_pred_normalised"),
target_hz = 1000,
upsample_pupil = TRUE
)
x |
A dataframe containing gaze and pupil data with columns: |
pupil_cols |
Character vector of pupil diameter column names. |
gaze_cols |
Character vector of gaze position column names. |
target_hz |
Target sampling frequency (default is 1000 Hz). |
upsample_pupil |
Logical; if |
A dataframe with up-sampled time points and an up_sampled
column.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.