Learn R Programming

spiro (version 0.2.3)

get_protocol: Guess a test protocol from a corresponding exercise testing data set

Description

get_protocol() gets the underlying test protocol based on given load data.

Usage

get_protocol(data)

Value

A data.frame with the duration and load of each protocol step.

Arguments

data

A data.frame containing the exercise testing data. It is highly recommend to parse non-interpolated breath-by-breath data or processed data with a very short interpolating/averaging interval.

Examples

Run this code
# Import example data
raw_data <- spiro_raw(data = spiro_example("zan_gxt"))

get_protocol(raw_data)

Run the code above in your browser using DataLab