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.6.0 ──
#> ℹ Data updated: 2024-04-13 21:56:46 UTC
#> # A tibble: 1 × 7
#> sport_id sport_code sport_link sport_name sport_abbreviation
#> <int> <chr> <chr> <chr> <chr>
#> 1 1 mlb /api/v1/sports/1 Major League … MLB
#> # ℹ 2 more variables: sort_order <int>, active_status <lgl>
# }