powered by
This function allows you to scrape basic batter statistics over a custom time frame. Data is sourced from Baseball-Reference.com.
bref_daily_batter(t1, t2)
Returns a tibble of batter performance with the following columns:
First date data should be scraped from. Should take the form "YEAR-MONTH-DAY"
Last date data should be scraped from. Should take the form "YEAR-MONTH-DAY"
# \donttest{ try(bref_daily_batter(t1="2015-05-10", t2="2015-06-20")) # }
Run the code above in your browser using DataLab