Learn R Programming

baseballr (version 1.5.0)

mlb_team_affiliates: MLB Team Affiliates

Description

MLB Team Affiliates

Usage

mlb_team_affiliates(team_ids = NULL, sport_ids = NULL, 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
parent_org_namecharacter
parent_org_idinteger
spring_league_idinteger
spring_league_namecharacter
spring_league_linkcharacter
spring_league_abbreviationcharacter
venue_idinteger
venue_namecharacter
venue_linkcharacter
spring_venue_idinteger
spring_venue_linkcharacter
league_idinteger
league_namecharacter
league_linkcharacter
division_idinteger
division_namecharacter
division_linkcharacter
sport_idinteger
sport_linkcharacter
sport_namecharacter

Arguments

team_ids

The team_id(s) to return affiliates data for.

sport_ids

The sport_id to return team affiliates information for.

season

The season to return team affiliates data for the particular season.

Examples

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

Run the code above in your browser using DataLab