check_baseline: Check baseline window for missing data

Description Usage Arguments Value Examples

View source: R/utilities.R

Description

check_baseline examines the data in a specified baseline window.

Usage

1
2
check_baseline(data = data, BaselineWindow = NULL,
  ReturnData = FALSE)

Arguments

data

A data table object output by create_time_series.

BaselineWindow

A numeric vector of length 1 or 2 specifying the time points of the baseline window to be examined. Providing two values indicates the start time and the end time of the baseline, respectively. Providing a single value (i.e., time point) assumes that every preceding time point is part of the baseline (N.B. trials may vary in the size of the baseline window and will result in an error).

ReturnData

A logical indicating whether to return a data table containing information for each event.

Value

Summary information

Examples

1
2
3
4
5
6
7
# Load example data
data("Pupilex3")

check_baseline(Pupilex3, BaselineWindow = c(-500, 0))

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

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