game_data: Game Data

Description Usage Arguments Value

View source: R/game_data.R

Description

This function simplifies large data sets that are provided by positional tracking companies to four variables: speed, acceleration, units, and athlete name. This allows the midsprint package to model player profiles while maintaining a small footprint on the computer's memory.

Please note that the units input are those associated with the athlete's speed. If speed and acceleration are recorded in different units, please convert to a consistent format before using this function. You can do this using the conversion_factor function to calculate the conversion constant.

Usage

1
2
3
game_data(speed, acceleration, units = "m/s", player_name = NULL)

player_data(speed, acceleration, units = "m/s", player_name = NULL)

Arguments

speed

In-game athlete speed vector.

acceleration

In-game athlete acceleration vector.

units

Units used by the tracking system.

player_name

Athlete name - if not provided, an arbitrary player number is assigned.

Value

Athlete game data for modeling.


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