mlb_team_affiliates: *MLB Team Affiliates*

View source: R/mlb_team_affiliates.R

mlb_team_affiliatesR Documentation

MLB Team Affiliates

Description

MLB Team Affiliates

Usage

mlb_team_affiliates(team_ids = NULL, sport_ids = NULL, season = NULL)

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.

Value

Returns a tibble with the following columns

col_name types description
all_star_status character All-star status flag.
team_id integer Team MLBAM ID.
team_full_name character Full team name.
link character API link to the team.
season integer Season year.
team_code character Internal team code.
file_code character File code abbreviation.
team_abbreviation character Team abbreviation.
team_name character Short team name.
location_name character Team location (city).
first_year_of_play character First year the franchise played.
short_name character Short display name.
franchise_name character Franchise name.
club_name character Club name.
active logical Whether the team is active.
parent_org_name character Parent organization name.
parent_org_id integer Parent organization MLBAM ID.
spring_league_id integer Spring league MLBAM ID.
spring_league_name character Spring league name.
spring_league_link character API link to the spring league.
spring_league_abbreviation character Spring league abbreviation.
venue_id integer Home venue MLBAM ID.
venue_name character Home venue name.
venue_link character API link to the venue.
spring_venue_id integer Spring training venue MLBAM ID.
spring_venue_link character API link to the spring venue.
league_id integer League MLBAM ID.
league_name character League name.
league_link character API link to the league.
division_id integer Division MLBAM ID.
division_name character Division name.
division_link character API link to the division.
sport_id integer Sport MLBAM ID.
sport_link character API link to the sport.
sport_name character Sport name (e.g., Major League Baseball).

Examples


  try(mlb_team_affiliates(team_ids = 147))


baseballr documentation built on Aug. 27, 2026, 1:07 a.m.