Description Usage Arguments Examples
Original code from Bill Petti and modified as needed
1 | bbref_leaderboard(bat_pitch, t1 = NULL, t2 = NULL, n = 30)
|
bat_pitch |
either 'bat' or 'pit' |
t1 |
First date data should be scraped from. Should take the form "YEAR-DAY-MONTH" |
t2 |
Second date data should be scraped from. Should take the form "YEAR-DAY-MONTH" |
n |
use number of days prior from today |
1 2 | bb_p<-bbref_leaderboard('pit',"2015-05-10", "2015-06-20")
bb_h<-bbref_leaderboard('bat',n=30) # current year; last 30 days from today
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.