trim_filtered: Trim the beginning and end of filtered events.

Description Usage Arguments Value Examples

View source: R/process.R

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

1
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

1
2
3
4
5
6
7
8
# 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")

PupilPre documentation built on March 14, 2020, 1:08 a.m.