lactate_curve {lactater} | R Documentation |
Lactate curve
Description
It retrieves the lactate curve for plotting purposes.
Usage
lactate_curve(
.data,
intensity_column,
lactate_column,
heart_rate_column,
fit = c("3rd degree polynomial", "4th degree polynomial", "B-spline"),
include_baseline = FALSE,
sport = c("cycling", "running", "swimming")
)
Arguments
.data |
The raw data. |
intensity_column |
The name of the intensity column. |
lactate_column |
The name of the lactate column. |
heart_rate_column |
The name of the heart rate column, if applicable. |
fit |
The fit you would like to use for plotting the lactate curve.
Options are |
include_baseline |
A boolean to indicate whether to include the baseline value in the fit. |
sport |
The sport at which the incremental test was performed. One of |
Value
a list with the following elements:
data |
a tibble containing the raw data with the columns |
lactate_curve |
a tibble containing the data with the columns |
heart_rate_response |
a tibble containing the data with the columns |
Examples
## Not run:
lactate_curve(
.data = demo_data,
intensity_column = "intensity",
lactate_column = "lactate",
heart_rate_column = "heart_rate",
fit = "3rd degree polynomial",
include_baseline = TRUE,
sport = "cycling"
)
## End(Not run)