extract_blinks: Extract blinks

View source: R/extract_blinks.R

extract_blinksR Documentation

Description

Extracts blinks from the events table of the eyelinkRecording object.. Normally, you don't need to call this function yourself, as it is called during the read_edf with default settings (e.g., import_blinks = TRUE).

Usage

extract_blinks(object)

## S3 method for class 'data.frame'
extract_blinks(object)

## S3 method for class 'eyelinkRecording'
extract_blinks(object)

Arguments

object

Either an eyelinkRecording object or data.frame with events, i.e., events slot of the eyelinkRecording object.

Value

Object of the same time as input, i.e., either a eyelinkRecording object with an additional blinks slot or a data.frame with blinks' information. See eyelinkRecording for details.

See Also

read_edf, eyelinkRecording

Examples

data(gaze)

# by passing the recording
gaze <- extract_blinks(gaze)

# by passing events table
blinks <- extract_blinks(gaze$events)

eyelinkReader documentation built on April 4, 2025, 1:30 a.m.