Learn R Programming

baseballr (version 1.5.0)

mlb_divisions: MLB Divisions

Description

MLB Divisions

Usage

mlb_divisions(division_id = NULL, league_id = NULL, sport_id = NULL)

Value

Returns a tibble with the following columns

col_nametypes
division_idinteger
division_namecharacter
seasoncharacter
division_name_shortcharacter
division_linkcharacter
division_abbreviationcharacter
has_wildcardlogical
sort_orderinteger
num_playoff_teamsinteger
activelogical
league_idinteger
league_linkcharacter
sport_idinteger
sport_linkcharacter

Arguments

division_id

Return division(s) data for a specific division

league_id

Return division(s) data for all divisions in a specific league

sport_id

Return division(s) for all divisions in a specific sport.

Examples

Run this code
# \donttest{
  try(mlb_divisions(sport_id = 1))
# }

Run the code above in your browser using DataLab