trim_filtered {PupilPre}R Documentation

Trim the beginning and end of filtered events.

Description

trim_filtered removes events skipped by the filter as well as a specified number of milliseconds from the beginning and the end of each filtered event (as to remove artifacts created by the filter).

Usage

trim_filtered(data = data, RmSkipped = NULL, RmEdges = NULL)

Arguments

data

A data frame object created from auto_cleanup.

RmSkipped

A logical value indicating whether or not to remove events that were skipped during the filtering process (due to NAs).

RmEdges

A numeric vector of length 2 indicating the number of milliseconds to remove from the beginning and end of each event.

Value

An object of type data table as described in tibble.

Examples

# Load example data
data("Pupilex6")

dat <- trim_filtered(data = Pupilex6, RmSkipped = TRUE,
                     RmEdges = c(75, 75))

# Please see the vignettes for detailed example usage.
vignette("PupilPre_Interpolation_and_Filtering", package="PupilPre")


[Package PupilPre version 0.6.2 Index]