View source: R/sch_edge_frequency.R
edge_frequency | R Documentation |
This function allows you to calculate the percent of pitches thrown to different edges of the strike zone for a pitch by pitch data set that has been coded using the edge_code()
function.
edge_frequency(df, group = NULL)
df |
A data frame of pitch by pitch data that has been coded using the |
group |
Character string indicating what column to group the frequency by. For example, "pitcher" or "batter". Defaults to NULL, which calculates the frequencies across the entire data set. |
Returns a tibble with the additional edge columns necessary for frequency calculations.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.