bref_team_results {baseballr} | R Documentation |
Scrape Team Results
Description
This function allows you to scrape schedule and results for a major league team from Baseball-Reference.com
Usage
bref_team_results(Tm, year)
Arguments
Tm |
The abbreviation used by Baseball-Reference.com for the team whose results you want to scrape. |
year |
Season for which you want to scrape the park factors. |
Value
Returns a tibble of MLB team results and the following columns:
col_name | types |
Gm | numeric |
Date | character |
Tm | character |
H_A | character |
Opp | character |
Result | character |
R | numeric |
RA | numeric |
Inn | character |
Record | character |
Rank | numeric |
GB | character |
Win | character |
Loss | character |
Save | character |
Time | character |
D/N | character |
Attendance | numeric |
cLI | numeric |
Streak | numeric |
Orig_Scheduled | character |
Year | numeric |
Examples
try(bref_team_results("NYM", 2015))
try(bref_team_results(Tm="TBR", year=2008))
[Package baseballr version 1.6.0 Index]