It reads the raw data exported from the metabolic cart.
Usage
read_data(
path,
metabolic_cart = c("cosmed", "cortex", "nspire", "parvo", "geratherm", "cardiocoach",
"custom"),
time_column = "t",
work_rate_column = NULL
)
Arguments
- path
Path to read the file from.
- metabolic_cart
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.
- time_column
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".
- work_rate_column
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 calledWR
, for example, just pass"WR"
to this argument.
Value
a tibble