mlb_team_leaders {baseballr} | R Documentation |
MLB Team Leaders
Description
MLB Team Leaders
Usage
mlb_team_leaders(
team_id = NULL,
leader_categories = NULL,
leader_game_types = NULL,
season = NULL,
limit = 1000
)
Arguments
team_id |
Team ID to return team leader information for. |
leader_categories |
Team leader category to return information and ranking for a particular statistic. |
leader_game_types |
Game type to return information and ranking for a particular statistic in a particular game type. |
season |
Season to return team leader information for. |
limit |
A limit to limit return to a particular number of records. |
Value
Returns a tibble with the following columns
col_name | types |
leader_category | character |
rank | integer |
value | character |
season | character |
team_id | integer |
team_name | character |
team_link | character |
league_id | integer |
league_name | character |
league_link | character |
person_id | integer |
person_full_name | character |
person_link | character |
person_first_name | character |
person_last_name | character |
sport_id | integer |
sport_link | character |
sport_abbreviation | character |
stat_group | character |
total_splits | integer |
game_type_id | character |
game_type_description | character |
Examples
try(mlb_team_leaders(team_id = 137, leader_categories = "homeRuns", season = 2021))
[Package baseballr version 1.6.0 Index]