Description Usage Arguments Examples
This function returns a data.frame of game statistics for a team in a given season
1 | game_stats(team_num, year, game_count = NULL, bothteams = TRUE)
|
team_num |
The number of the team. You can use the baseballr package to look up team_num. |
year |
The year of the season you want. |
game_count |
The number of games back from latest point in pull. For example, 5 would give you last 5 games of the season. If null, the entire season is grabbed. |
bothteams |
By default, bothteams is true and stats for your selected team and each opponent will be included. To only get the team you selected set to false. |
1 2 | game_stats(457,2018)
game_stats()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.