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.2.0 ──
#>  Data updated: 2022-04-30 07:15:45 UTC
#> # A tibble: 8 × 10
#>   conference_id conference_name      link  conference_abbr… has_wildcard
#>           <int> <chr>                <chr> <chr>            <lgl>       
#> 1           301 PCL American Confer… /api… PCLA             FALSE       
#> 2           302 PCL Pacific Confere… /api… PCLP             FALSE       
#> 3          5153 Metropolitan Divisi… /api… NHLM             FALSE       
#> 4          5154 Atlantic Division    /api… NHLA             FALSE       
#> 5          5156 Central Division     /api… NHLC             FALSE       
#> 6          5157 Pacific Division     /api… NHLP             FALSE       
#> 7          5189 Southeast Division   /api… NHLSE            FALSE       
#> 8          5190 Northwest Division   /api… NHLNW            FALSE       
#> # … with 5 more variables: 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.2.0 ──
#>  Data updated: 2022-04-30 07:15:45 UTC
#> # A tibble: 1 × 10
#>   conference_id conference_name      link  conference_abbr… has_wildcard
#>           <int> <chr>                <chr> <chr>            <lgl>       
#> 1           301 PCL American Confer… /api… PCLA             FALSE       
#> # … with 5 more variables: conference_name_short <chr>,
#> #   league_id <int>, league_link <chr>, sport_id <int>,
#> #   sport_link <chr>
# }