View source: R/detect_remove_blinks.R
detect_blinks_by_velocity | R Documentation |
This allows the user to set a threshold for velocity and remove anything classed as a blink as a result
detect_blinks_by_velocity(
data,
pupil,
threshold = 0.1,
extend_forward = 0,
extend_back = 0
)
data |
dataset of class PupillometryR |
pupil |
column name for pupil data |
threshold |
velocity threshold for blink detection |
extend_forward |
number of observations to remove forward of blink |
extend_back |
number of obervations to remove behind blink |
returns dataframe with blinks removed including forward and back, and data in blink column.
Sdata <- make_pupillometryr_data(data = pupil_data,
subject = ID,
trial = Trial,
time = Time,
condition = Type)
Sdata2 <- detect_blinks_by_velocity(data = Sdata,
pupil = LPupil,
threshold = 0.1,
extend_forward = 0,
extend_back = 0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.