format_splits {shorts}R Documentation

Format Split Data

Description

Function formats split data and calculates split distances, split times and average split velocity

Usage

format_splits(distance, time)

Arguments

distance

Numeric vector

time

Numeric vector

Value

Data frame with the following columns:

split

Split number

split_distance_start

Distance at which split starts

split_distance_stop

Distance at which split ends

split_distance

Split distance

split_time_start

Time at which distance starts

split_time_stop

Time at which distance ends

split_time

Split time

split_mean_velocity

Mean velocity over split distance

split_mean_acceleration

Mean acceleration over split distance

Examples

data("split_times")

john_data <- split_times[split_times$athlete == "John", ]

format_splits(john_data$distance, john_data$time)

[Package shorts version 3.2.0 Index]