Learn R Programming

baseballr (version 1.5.0)

mlb_team_history: MLB Teams History

Description

MLB Teams History

Usage

mlb_team_history(team_ids = NULL, start_season = NULL, end_season = NULL)

Value

Returns a tibble with the following columns

col_nametypes
all_star_statuscharacter
team_idinteger
team_full_namecharacter
linkcharacter
seasoninteger
team_codecharacter
file_codecharacter
team_abbreviationcharacter
team_namecharacter
location_namecharacter
first_year_of_playcharacter
short_namecharacter
franchise_namecharacter
club_namecharacter
activelogical
venue_idinteger
venue_namecharacter
venue_linkcharacter
spring_venue_idinteger
spring_venue_linkcharacter
league_idinteger
league_namecharacter
league_linkcharacter
sport_idinteger
sport_linkcharacter
sport_namecharacter

Arguments

team_ids

The team_id(s) to return historical data for.

start_season

The start_season to return historical data for from the given year to present.

end_season

The end_season to return historical data for from the the creation to the given year.

Examples

Run this code
# \donttest{
  try(mlb_team_history(team_ids = 147))
# }

Run the code above in your browser using DataLab