Skip to contents

View all PCL conferences

Usage

mlb_conferences(conference_id = NULL, season = NULL)

Arguments

conference_id

Conference ID to return information for.

season

Year to return to return conference information for.

Value

Returns a tibble with the following columns

col_nametypesdescription
conference_idintegerMLB conference ID.
conference_namecharacterConference name.
linkcharacterMLB Stats API relative conference link.
conference_abbreviationcharacterConference abbreviation.
has_wildcardlogicalWhether the conference has a wild card.
conference_name_shortcharacterShort conference name.
league_idintegerMLB league ID.
league_linkcharacterMLB Stats API relative league link.
sport_idintegerMLB sport ID.
sport_linkcharacterMLB Stats API relative sport link.

Examples

# \donttest{
  try(mlb_conferences())
#> ── MLB Conferences data from MLB.com ──────────────── baseballr 2.0.0 ──
#>  Data updated: 2026-06-12 14:09:25 UTC
#> # A tibble: 2 × 10
#>   conference_id conference_name         link      conference_abbreviat…¹
#>           <int> <chr>                   <chr>     <chr>                 
#> 1           301 PCL American Conference /api/v1/… PCLA                  
#> 2           302 PCL Pacific Conference  /api/v1/… PCLP                  
#> # ℹ abbreviated name: ¹​conference_abbreviation
#> # ℹ 6 more variables: has_wildcard <lgl>, conference_name_short <chr>,
#> #   league_id <int>, league_link <chr>, sport_id <int>,
#> #   sport_link <chr>
  try(mlb_conferences(conference_id =  301, season = 2020))
#> ── MLB Conferences data from MLB.com ──────────────── baseballr 2.0.0 ──
#>  Data updated: 2026-06-12 14:09:25 UTC
#> # A tibble: 1 × 10
#>   conference_id conference_name         link      conference_abbreviat…¹
#>           <int> <chr>                   <chr>     <chr>                 
#> 1           301 PCL American Conference /api/v1/… PCLA                  
#> # ℹ abbreviated name: ¹​conference_abbreviation
#> # ℹ 6 more variables: has_wildcard <lgl>, conference_name_short <chr>,
#> #   league_id <int>, league_link <chr>, sport_id <int>,
#> #   sport_link <chr>
# }