powered by
This function allows you to code a batted ball as a barrel as defined by the Statcast research team using data as provided by baseballsavant.mlb.com.
code_barrel(df)
Returns a tibble with the additional column, barrel.
barrel
A dataframe generated by baseballsavant.mlb.com that must include the following variables: launch_angle and launch_speed.
launch_angle
launch_speed