MLB Team Affiliates
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 |
all_star_status | character |
team_id | integer |
team_full_name | character |
link | character |
season | integer |
team_code | character |
file_code | character |
team_abbreviation | character |
team_name | character |
location_name | character |
first_year_of_play | character |
short_name | character |
franchise_name | character |
club_name | character |
active | logical |
parent_org_name | character |
parent_org_id | integer |
spring_league_id | integer |
spring_league_name | character |
spring_league_link | character |
spring_league_abbreviation | character |
venue_id | integer |
venue_name | character |
venue_link | character |
spring_venue_id | integer |
spring_venue_link | character |
league_id | integer |
league_name | character |
league_link | character |
division_id | integer |
division_name | character |
division_link | character |
sport_id | integer |
sport_link | character |
sport_name | character |
Examples
# \donttest{
try(mlb_team_affiliates(team_ids = 147))
#> ── MLB Team Affiliates data from MLB.com ──────────── baseballr 1.2.0 ──
#> ℹ Data updated: 2022-04-30 07:16:39 UTC
#> # A tibble: 8 × 35
#> all_star_status team_id team_full_name link season team_code
#> <chr> <int> <chr> <chr> <int> <chr>
#> 1 N 147 New York Yankees /api… 2022 nya
#> 2 N 3308 Yankees Alternate Trai… /api… 2022 nys
#> 3 O 3309 Yankees Organization /api… 2022 nyo
#> 4 N 531 Scranton/Wilkes-Barre … /api… 2022 swb
#> 5 N 587 Tampa Tarpons /api… 2022 tby
#> 6 N 475 FCL Yankees /api… 2022 yan
#> 7 N 1956 Somerset Patriots /api… 2022 som
#> 8 N 537 Hudson Valley Renegades /api… 2022 hvr
#> # … with 29 more variables: file_code <chr>, team_abbreviation <chr>,
#> # team_name <chr>, location_name <chr>, first_year_of_play <chr>,
#> # short_name <chr>, franchise_name <chr>, club_name <chr>,
#> # active <lgl>, parent_org_name <chr>, parent_org_id <int>,
#> # spring_league_id <int>, spring_league_name <chr>,
#> # spring_league_link <chr>, spring_league_abbreviation <chr>,
#> # venue_id <int>, venue_name <chr>, venue_link <chr>, …
# }