code_barrel: Code whether a batted ball is a "barrel" based on a Statcast...

Description Usage Arguments Examples

Description

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.

Usage

1

Arguments

df

A dataframe generated by baseballsavant.mlb.com that must include the following variables: hit_angle and hit_speed.

Examples

1
## Not run: code_barrel(df)

Fackz/baseball documentation built on June 25, 2019, 12:05 a.m.