ACWR {ACWR} | R Documentation |
Acute Chronic Workload Ratio
Description
Acute Chronic Workload Ratio
Usage
ACWR(
db,
ID,
TL,
weeks,
days,
training_dates,
ACWR_method = c("EWMA", "RAC", "RAU")
)
Arguments
db |
a data frame |
ID |
ID of the subjects |
TL |
training load |
weeks |
training weeks |
days |
training days |
training_dates |
training dates |
ACWR_method |
method to calculate ACWR |
Value
a data frame with the acute & chronic training load and ACWR calculated with the selected method/s and added on the left side of the data frame
Examples
## Not run:
# Get old working directory
oldwd <- getwd()
# Set temporary directory
setwd(tempdir())
# Read dfs
data("training_load", package = "ACWR")
# Convert to data.frame
training_load <- data.frame(training_load)
# Calculate ACWR
result_ACWR <- ACWR(db = training_load,
ID = "ID",
TL = "TL",
weeks = "Week",
days = "Day",
training_dates = "Training_Date",
ACWR_method = c("EWMA", "RAC", "RAU"))
# set user working directory
setwd(oldwd)
## End(Not run)
[Package ACWR version 0.1.0 Index]