Learn R Programming

baseballr (version 1.6.0)

mlb_league: MLB Leagues

Description

MLB Leagues

Usage

mlb_league(seasons = NULL, sport_id = NULL, league_id = NULL)

Value

Returns a tibble with the following columns

col_nametypes
leader_typecharacter

Arguments

seasons

Year(s) to return to return league information for.

sport_id

The sport_id to return league information for.

league_id

The league_id(s) to return league information for.

Examples

Run this code
# \donttest{
  try(mlb_league(seasons = 2021, sport_id = 1))
# }

Run the code above in your browser using DataLab