detect_blinks_by_column: detect blinks by a pre-existing labelled blink column that...

View source: R/detect_remove_blinks.R

detect_blinks_by_columnR Documentation

detect blinks by a pre-existing labelled blink column that comes from the eyetracker

Description

This allows the user to remove anything classed as a blink as a result of eyetracker output.

Usage

detect_blinks_by_column(
  data,
  pupil,
  column,
  extend_forward = 0,
  extend_back = 0,
  .tag = 1
)

Arguments

data

dataset of class PupillometryR

pupil

column name for pupil data

column

column that refers to blinks

extend_forward

number of observations to remove forward of blink

extend_back

number of obervations to remove behind blink

.tag

the variable in the blink column that represents a blink

Value

returns dataframe with blinks removed including forward and back, and data in blink column.

Examples

## Not run: 
Sdata <- make_pupillometryr_data(data = pupil_data,
subject = ID,
trial = Trial,
time = Time,
condition = Type)

Sdata2 <- detect_blinks_by_column(data = Sdata,
pupil = LPupil,
column = data_in_blink,
extend_forward = 0,
extend_back = 0)

## End(Not run)


PupillometryR documentation built on Sept. 15, 2023, 5:13 p.m.