get_protocol: Guess a test protocol from a corresponding exercise testing...

View source: R/add_protocol.R

get_protocolR Documentation

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)

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.

Value

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

Examples

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

get_protocol(raw_data)

spiro documentation built on Aug. 14, 2023, 5:07 p.m.