add_bodymass | R Documentation |
add_bodymass()
adds body mass-related variables to processed gas
exchange data.
add_bodymass(data, bodymass = NULL)
data |
A |
bodymass |
A numeric value to manually set the participant's body mass. Defaults to NULL to use body mass data from the file's meta data. Set to NA to ignore the meta data without setting a new body mass. |
Based on an individual's body mass, relative oxygen uptake (VO2_rel) and carbon dioxide output (VCO2_rel) are calculated. For running protocols, running economy (RE) is calculated.
A data.frame
of the class spiro
containing the
cardiopulmonary exercise testing data including variables related to body
mass.
# get example file
file <- spiro_example("zan_gxt")
s <- spiro(file)
out <- add_bodymass(s, bodymass = 65.3)
head(out)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.