Skip to contents

MLB Sport IDs Information

Usage

mlb_sports_info(sport_id = 1)

Arguments

sport_id

The sport_id to return information for.

Value

Returns a tibble with the following columns

col_nametypes
sport_idinteger
sport_codecharacter
sport_linkcharacter
sport_namecharacter
sport_abbreviationcharacter
sort_orderinteger
active_statuslogical

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>
# }