run_chamber: Analyze data from a lower body negative pressure trial.

Description Usage Arguments Value

View source: R/run_chamber.R

Description

The required object for this function is the output of load_labchart.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
run_chamber(
  data,
  rate = 1000,
  normalize_time = T,
  baseline_length = 60,
  trial_length = 120,
  n_steps = 2,
  step_length = 60,
  chamber_col = "Chamber",
  initial_chamber_pressure = 10,
  chamber_step = 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.

baseline_length

a numeric, the length of time in seconds the user would like to use for the calculation of baseline statistics prior to the onset of the chamber. Default is 60 seconds.

trial_length

a numeric, the length of time in seconds the user would like to specify that the trial proceeded for following the onset of the chamber. Default is 120 seconds.

n_steps

a numeric, the number of chamber steps used in this lower-body negative pressure trial. Default is 2 steps.

step_length

a numeric, the length of time in seconds that each step was sustained for prior to proceeding to the subsequent step or the trial finishing. Default is 60 seconds.

chamber_col

a character, the name of the column containing the analog data of the chamber pressure. This will be used to identify the start and stop points of the chamber assessment. Default is 'Chamber'.

initial_chamber_pressure

a numeric, the intial pressure specified for the lower-body negative pressure chamber. This value will be used to annotate the meta data. Default is 10 mmHg.

chamber_step

a numeric, the size of pressure change between each step of the chamber during the trial. Default is 5 mmHg.

Value

a data frame containing the lower-body negative pressure data with all the required meta data annotated.


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