MLB Sport IDs Information
Value
Returns a tibble with the following columns
col_name | types |
sport_id | integer |
sport_code | character |
sport_link | character |
sport_name | character |
sport_abbreviation | character |
sort_order | integer |
active_status | logical |
Examples
# \donttest{
try(mlb_sports_info(sport_id = 1))
#> ── MLB Sports Info data from MLB.com ──────────────── baseballr 1.2.0 ──
#> ℹ Data updated: 2022-04-30 07:16:36 UTC
#> # A tibble: 1 × 7
#> sport_id sport_code sport_link sport_name sport_abbreviat… sort_order
#> <int> <chr> <chr> <chr> <chr> <int>
#> 1 1 mlb /api/v1/sp… Major Lea… MLB 11
#> # … with 1 more variable: active_status <lgl>
# }