It reads the raw data exported from the metabolic cart.
read_data(
path,
metabolic_cart = c("cosmed", "cortex", "nspire", "parvo", "geratherm", "cardiocoach",
"custom"),
time_column = "t",
work_rate_column = NULL
)
a tibble
Path to read the file from.
Metabolic cart that was used for data collection. Currently, 'cosmed', 'cortex', 'nspire', 'parvo', 'geratherm', and 'cardiocoach' are supported. Additionaly, there is an option called 'custom' that supports files that do not have a metabolic cart-specific format.
The name (quoted) of the column containing the time. Depending on the language of your system, this column might not be "t". Therefore, you may specify it here. Default to "t".
Default is NULL
. In case your work rate column is coerced as a character column
you can define here the name of this column in your data file. This happens because at the very beginning of the test
the system may input a character like "-" to indicate no work rate. Therefore this is not going to get recognized as a numeric column.
If your work rate column is called WR
, for example, just pass "WR"
to this argument.