View source: R/calculate_pace_splits.R
calculate_pace_splits | R Documentation |
Function to calculate splits for a running or cycling event.
calculate_pace_splits(distance, time, interval = 1, round = 2)
distance |
Target distance in kilometres. |
time |
Target time to cover |
interval |
Interval to calculate splits for in kilometres. Default is
|
round |
Decimal points to round numeric variables to. |
Tibble.
Stuart K. Grange
# Pace for a half marathon
# Every km
calculate_pace_splits(half_marathon(), "01:30:00", 1)
# Every 5 km
calculate_pace_splits(half_marathon(), "01:30:00", 5)
# Pace for 10 km
calculate_pace_splits(10, "30:00")
# Pace for 5 km
calculate_pace_splits(5, "18:15")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.