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_nametypes
conference_idinteger
conference_namecharacter
linkcharacter
conference_abbreviationcharacter
has_wildcardlogical
name_shortcharacter
league_idinteger
league_linkcharacter
sport_idinteger
sport_linkcharacter

Examples

# \donttest{
  try(mlb_conferences())
#> ── MLB Conferences data from MLB.com ──────────────── baseballr 1.6.0 ──
#>  Data updated: 2024-04-13 21:56:06 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 1.6.0 ──
#>  Data updated: 2024-04-13 21:56:06 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>
# }