View source: R/sch_code_barrel.R
code_barrel | R Documentation |
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)
df |
A dataframe generated by baseballsavant.mlb.com that must include the following variables: |
Returns a tibble with the additional column, barrel
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.