mlb_sports_info: *MLB Sport IDs Information*

View source: R/mlb_sports_info.R

mlb_sports_infoR Documentation

MLB Sport IDs Information

Description

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_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.

Examples


  try(mlb_sports_info(sport_id = 1))


baseballr documentation built on Aug. 27, 2026, 1:07 a.m.