View source: R/format-splits.R
format_splits | R Documentation |
Function formats split data and calculates split distances, split times and average split velocity
format_splits(distance, time)
distance |
Numeric vector |
time |
Numeric vector |
Data frame with the following columns:
Split number
Distance at which split starts
Distance at which split ends
Split distance
Time at which distance starts
Time at which distance ends
Split time
Mean velocity over split distance
Mean acceleration over split distance
data("split_times")
john_data <- split_times[split_times$athlete == "John", ]
format_splits(john_data$distance, john_data$time)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.