R/detect_remove_blinks.R
detect_blinks_by_column.Rd
This allows the user to remove anything classed as a blink as a result of eyetracker output.
detect_blinks_by_column(
data,
pupil,
column,
extend_forward = 0,
extend_back = 0,
.tag = 1
)
dataset of class PupillometryR
column name for pupil data
column that refers to blinks
number of observations to remove forward of blink
number of obervations to remove behind blink
the variable in the blink column that represents a blink
returns dataframe with blinks removed including forward and back, and data in blink column.
if (FALSE) {
Sdata <- make_pupillometryr_data(data = pupil_data,
subject = ID,
trial = Trial,
time = Time,
condition = Type)
Sdata2 <- detect_blinks_by_column(data = Sdata,
pupil = pupil_data,
column = data_in_blink,
extend_forward = 0,
extend_back = 0)
}