add_protocol | R Documentation |
add_protocol()
adds a predefined test protocol to an existing set of
data from an exercise test.
add_protocol(data, protocol)
data |
A spiro |
protocol |
A |
A data.frame
of the class spiro
with cardiopulmonary
parameters and the corresponding load data.
set_protocol for protocol setting with helper functions.
set_protocol_manual for manual protocol design.
get_protocol For automated extraction of protocols from raw data.
# Get example data
file <- spiro_example("zan_gxt")
s <- spiro(file)
out <- add_protocol(
s,
set_protocol(pt_pre(60), pt_steps(300, 50, 50, 7, 30))
)
head(out)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.