edge_scrape: Edge Percentage Scrape

Description Usage Arguments Examples

Description

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.

Usage

1

Arguments

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".

Examples

1
## Not run: edge_scrape("2015-04-05", "2015-04-05", pitcher)

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