if (FALSE) {
## get file path from example data
path_example <- system.file("ramp_cosmed.xlsx", package = "whippr")
## read data from ramp test
df <- read_data(path = path_example, metabolic_cart = "cosmed")
## normalize incremental test data
ramp_normalized <- df %>%
incremental_normalize(
.data = .,
incremental_type = "ramp",
has_baseline = TRUE,
baseline_length = 240,
work_rate_magic = TRUE,
baseline_intensity = 20,
ramp_increase = 25
)
## get file path from example data
path_example_step <- system.file("step_cortex.xlsx", package = "whippr")
## read data from step test
df_step <- read_data(path = path_example_step, metabolic_cart = "cortex")
## normalize incremental test data
step_normalized <- df_step %>%
incremental_normalize(
.data = .,
incremental_type = "step",
has_baseline = TRUE,
baseline_length = 120,
work_rate_magic = TRUE,
baseline_intensity = 0,
step_start = 50,
step_increase = 25,
step_length = 180
)
}
Run the code above in your browser using DataLab