View source: R/mlb_sports_info.R
| mlb_sports_info | R Documentation |
MLB Sport IDs Information
mlb_sports_info(sport_id = 1)
sport_id |
The sport_id to return information for. |
Returns a tibble with the following columns
| col_name | types | description |
| sport_id | integer | MLBAM sport (level) identifier. |
| sport_code | character | Short sport code (e.g. 'mlb', 'aaa'). |
| sport_link | character | API link to the sport resource. |
| sport_name | character | Full sport/level name. |
| sport_abbreviation | character | Sport abbreviation (e.g. 'MLB'). |
| sort_order | integer | Display sort order for the sport. |
| active_status | logical | Whether the sport/level is active. |
try(mlb_sports_info(sport_id = 1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.