combine_data: Combine Data

Description Usage Arguments Value

View source: R/combine_data.R

Description

combine_data and combine_profile replace optim_player_profile from the previous update, creating a more consistent coding environment amongst all _data and _profile functions.

Please note: the distance and time vectors comprise of 3 values: time splits at 10, 20, 40 yards/ 9.1, 18.3, 36.6 meters. To visualize how the data set should look, type player_combine into the console.

Usage

1
2
3
combine_data(distance, time, units = "m/s", player_name = NULL)

optim_player_profile(...)

Arguments

distance

Distance vector in the form of 10, 20, 40 yd or 9.1, 18.3, 36.6 m.

time

Split times.

units

Typically yards or meters.

player_name

Athlete name - optional.

Value

Builds a player's 40 yard/ 36.6 meter sprint test data frame. This function feeds into combine_profile to model their speed and acceleration over time.


aaronzpearson/midsprint documentation built on Dec. 26, 2021, 12:02 a.m.