View source: R/sc_run_expectancy.R
run_expectancy_table | R Documentation |
These functions allow a user to generate run expectancy tables from Baseball Savant data. Tables are automatically assigned to the Global Environment.
run_expectancy_table(df, level)
df |
A data frame generated from Baseball Savant that has been formatted using the run_expectancy_code() function. |
level |
Whether you want run expectancy calculated at the plate appearance or pitch level. "PA" or "Pitch" |
## Not run: run_expectancy_table(df, level = "PA")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.