| bref_daily_pitcher {baseballr} | R Documentation |
Scrape Pitcher Performance Data Over a Custom Time Frame
Description
This function allows you to scrape basic pitcher statistics over a custom time frame. Data is sourced from Baseball-Reference.com.
Usage
bref_daily_pitcher(t1, t2)
Arguments
t1 |
First date data should be scraped from. Should take the form "YEAR-MONTH-DAY" |
t2 |
Last date data should be scraped from. Should take the form "YEAR-MONTH-DAY" |
Value
Returns a tibble of pitcher performance with the following columns:
| col_name | types |
| bbref_id | character |
| season | integer |
| Name | character |
| Age | numeric |
| Level | character |
| Team | character |
| G | numeric |
| GS | numeric |
| W | numeric |
| L | numeric |
| SV | numeric |
| IP | numeric |
| H | numeric |
| R | numeric |
| ER | numeric |
| uBB | numeric |
| BB | numeric |
| SO | numeric |
| HR | numeric |
| HBP | numeric |
| ERA | numeric |
| AB | numeric |
| X1B | numeric |
| X2B | numeric |
| X3B | numeric |
| IBB | numeric |
| GDP | numeric |
| SF | numeric |
| SB | numeric |
| CS | numeric |
| PO | numeric |
| BF | numeric |
| Pit | numeric |
| Str | numeric |
| StL | numeric |
| StS | numeric |
| GB.FB | numeric |
| LD | numeric |
| PU | numeric |
| WHIP | numeric |
| BAbip | numeric |
| SO9 | numeric |
| SO.W | numeric |
| SO_perc | numeric |
| uBB_perc | numeric |
| SO_uBB | numeric |
Examples
try(bref_daily_pitcher("2015-05-10", "2015-06-20"))
[Package baseballr version 1.6.0 Index]