View source: R/pipeline-loadasc.R
load_asc | R Documentation |
.asc
filesThis function builds upon the eyelinker::read.asc()
function to parse the
messages and metadata within the EyeLink .asc
file. After loading and
additional processing, this function returns an S3 eyeris
class for use in
all subsequent eyeris
pipeline steps and functions.
load_asc(file, block = "auto")
file |
An SR Research EyeLink |
block |
Optional block number specification. The following are valid options:
|
An object of S3 class eyeris
with the following attributes:
file
: Path to the original .asc
file.
timeseries
: Dataframe of all raw timeseries data from the tracker.
events
: Dataframe of all event messages and their timestamps.
blinks
: Dataframe of all blink events.
info
: Dataframe of various metadata parsed from the file header.
latest
: eyeris
variable for tracking pipeline run history.
eyelinker::read.asc()
which this function wraps.
# Basic usage (no block column specified)
system.file("extdata", "memory.asc", package = "eyeris") |>
eyeris::load_asc()
# Manual specification of block number
system.file("extdata", "memory.asc", package = "eyeris") |>
eyeris::load_asc(block = 3)
# Auto-detect multiple recording segments embedded within the same file
system.file("extdata", "memory.asc", package = "eyeris") |>
eyeris::load_asc(block = "auto")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.