MLB Divisions
Arguments
- 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.
Value
Returns a tibble with the following columns
col_name | types |
division_id | integer |
division_name | character |
season | character |
division_name_short | character |
division_link | character |
division_abbreviation | character |
has_wildcard | logical |
sort_order | integer |
num_playoff_teams | integer |
active | logical |
league_id | integer |
league_link | character |
sport_id | integer |
sport_link | character |
Examples
# \donttest{
try(mlb_divisions(sport_id = 1))
#> ── MLB Divisions data from MLB.com ────────────────── baseballr 1.2.0 ──
#> ℹ Data updated: 2022-04-30 07:15:46 UTC
#> # A tibble: 6 × 14
#> division_id division_name season division_name_s… division_link
#> <int> <chr> <chr> <chr> <chr>
#> 1 200 American League West 2022 AL West /api/v1/divi…
#> 2 201 American League East 2022 AL East /api/v1/divi…
#> 3 202 American League Cen… 2022 AL Central /api/v1/divi…
#> 4 203 National League West 2022 NL West /api/v1/divi…
#> 5 204 National League East 2022 NL East /api/v1/divi…
#> 6 205 National League Cen… 2022 NL Central /api/v1/divi…
#> # … with 9 more variables: division_abbreviation <chr>,
#> # has_wildcard <lgl>, sort_order <int>, num_playoff_teams <int>,
#> # active <lgl>, league_id <int>, league_link <chr>, sport_id <int>,
#> # sport_link <chr>
# }