Learn R Programming

baseballr (version 1.6.0)

mlb_sports: MLB Sport IDs

Description

MLB Sport IDs

Usage

mlb_sports(sport_id = NULL)

Value

Returns a tibble with the following columns

col_nametypes
sport_idinteger
sport_codecharacter
sport_linkcharacter
sport_namecharacter
sport_abbreviationcharacter
sort_orderinteger
active_statuslogical

and the following values:

sport_idsport_codesport_linksport_namesport_abbreviationsort_orderactive_status
1mlb/api/v1/sports/1Major League BaseballMLB11TRUE
11aaa/api/v1/sports/11Triple-AAAA101TRUE
12aax/api/v1/sports/12Double-AAA201TRUE
13afa/api/v1/sports/13High-AA+301TRUE
14afx/api/v1/sports/14Low-AA401TRUE
16rok/api/v1/sports/16RookieROK701TRUE
17win/api/v1/sports/17Winter LeaguesWIN1301TRUE
8bbl/api/v1/sports/8Organized BaseballPros1401TRUE
21min/api/v1/sports/21Minor League BaseballMinors1402TRUE
23ind/api/v1/sports/23Independent LeaguesIND2101TRUE
51int/api/v1/sports/51International BaseballINT3501TRUE
508nat/api/v1/sports/508International Baseball (Collegiate)INTC3502TRUE
509nae/api/v1/sports/509International Baseball (18 and under)18U3503TRUE
510nas/api/v1/sports/510International Baseball (16 and under)16U3505TRUE
22bbc/api/v1/sports/22College BaseballCollege5101TRUE
586hsb/api/v1/sports/586High School BaseballH.S.6201TRUE

Arguments

sport_id

The sport_id to return information for.

Examples

Run this code
# \donttest{
  try(mlb_sports())
# }

Run the code above in your browser using DataLab