powered by
MLB Team Individual Stats
mlb_team_stats( team_id = NULL, stat_type = NULL, game_type = NULL, stat_group = NULL, season = NULL, sport_ids = NULL )
Returns a tibble with the following columns
Team ID to return information and ranking for a particular statistic for a particular team.
Stat type to return statistics for.
Game type to return information for a particular statistic in a particular game type.
Stat group to return information and ranking for a particular statistic in a particular group.
Year to return information and ranking for a particular statistic in a given year.
The sport_id(s) to return information and ranking information for.
# \donttest{ try(mlb_team_stats(team_id = 137, stat_type = 'season', stat_group = 'hitting', season = 2021)) # }
Run the code above in your browser using DataLab