powered by
Function formats split data and calculates split distances, split times and average split velocity
format_splits(distance, time)
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
Numeric vector
data("split_times") john_data <- split_times[split_times$athlete == "John", ] format_splits(john_data$distance, john_data$time)
Run the code above in your browser using DataLab