| trim_filtered | R Documentation |
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).
trim_filtered(data = data, RmSkipped = NULL, RmEdges = NULL)
data |
A data frame object created from |
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. |
An object of type data table as described in tibble.
# 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")