Description Usage Arguments Examples
This function allows you to calculate the percent of pitches thrown to different edges of the strike zone over any custom time frame. Data is acquired by scraping the GameDay application from MLBAM using Carson Sievert's pitchRx package. The data can take a while to query, particular for large date ranges.
1 | edge_scrape(start, end, group)
|
start |
First date in your date range. Must be a character string in the format "yyyy-mm-dd". |
end |
Last date in your date range. Must be a character string in the format "yyyy-mm-dd". |
group |
Character string indicating whether to group the output by pitchers or batters. Options are "pitcher" or "batter". |
1 | ## Not run: edge_scrape("2015-04-05", "2015-04-05", pitcher)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.