run_baseline: Analyze data from a baseline assessment of hemodynamics...

Description Usage Arguments Value

View source: R/run_baseline.R

Description

The required object for this function is the output of load_labchart

Usage

1
run_baseline(data, rate = 1000, normalize_time = T, trial_length = 5)

Arguments

data

a data frame output from load_labchart to be analyzed.

rate

a numeric, the sampling rate of the data. Note if the data was downsampled out of LabChart the corrected sampling rate should be specified in frames per second. Default is 1000.

normalize_time

a logical, if TRUE data will be interpolated to one datapoint per second using an internal function match_interp. If FALSE the existing sampling rate will be retained. Default is TRUE.

trial_length

the length of the baseline trial in minutes. This will be used if normalize_time is TRUE to convert the data to a one datapoint per second structure. Default is 5 minutes.

Value

a data frame containing the baseline assessment data with or without interpolation


neurorestore/Aima documentation built on Dec. 22, 2021, 1:14 a.m.