Description Usage Arguments Examples
This function returns a data.frame of advanced stats with each player and game for the entire season
1 | advanced_stats(team_num, year, type, 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. |
type |
hitting, pitching, or fielding depending on what stats you want. |
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 | advanced_stats(457,2018,'pitching')
advanced_stats()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.