View source: R/mlb_divisions.R
| mlb_divisions | R Documentation |
MLB Divisions
mlb_divisions(division_id = NULL, league_id = NULL, sport_id = NULL)
division_id |
Return division(s) data for a specific division |
league_id |
Return division(s) data for all divisions in a specific league |
sport_id |
Return division(s) for all divisions in a specific sport. |
Returns a tibble with the following columns
| col_name | types | description |
| division_id | integer | MLB division ID. |
| division_name | character | Division name. |
| season | character | Season (YYYY). |
| division_name_short | character | Short division name. |
| division_link | character | MLB Stats API relative division link. |
| division_abbreviation | character | Division abbreviation. |
| has_wildcard | logical | Whether the division has a wild card. |
| sort_order | integer | Display sort order for the division. |
| num_playoff_teams | integer | Number of playoff teams from the division. |
| active | logical | Whether the division is currently active. |
| league_id | integer | MLB league ID. |
| league_link | character | MLB Stats API relative league link. |
| sport_id | integer | MLB sport ID. |
| sport_link | character | MLB Stats API relative sport link. |
try(mlb_divisions(sport_id = 1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.