powered by
This function allows you to scrape schedule and results for a major league team from Baseball-Reference.com
bref_team_results(Tm, year)
Returns a tibble of MLB team results and the following columns:
The abbreviation used by Baseball-Reference.com for the team whose results you want to scrape.
Season for which you want to scrape the park factors.
# \donttest{ try(bref_team_results("NYM", 2015)) try(bref_team_results(Tm="TBR", year=2008)) # }
Run the code above in your browser using DataLab