Find MLB Venues
Arguments
- venue_ids
Venue directorial information based venue_id.
- sport_ids
The sport_id(s) for which to return venue directorial information.
- season
Year for which to return venue directorial information for a given season.
Value
Returns a tibble with the following columns:
col_name | types |
venue_id | integer |
venue_name | character |
venue_link | character |
active | logical |
Examples
# \donttest{
try(mlb_venues())
#> ── MLB Venues data from MLB.com ───────────────────── baseballr 1.2.0 ──
#> ℹ Data updated: 2022-04-30 07:16:47 UTC
#> # A tibble: 975 × 4
#> venue_id venue_name venue_link active
#> <int> <chr> <chr> <lgl>
#> 1 5515 Colorado Convention Center /api/v1/venues/5515 TRUE
#> 2 5520 Virginia Credit Union Stadium /api/v1/venues/5520 TRUE
#> 3 5525 ABC Supply Stadium /api/v1/venues/5525 TRUE
#> 4 4009 Miyagi Baseball Stadium /api/v1/venues/4009 FALSE
#> 5 4010 Tsuruoka Dream Stadium /api/v1/venues/4010 FALSE
#> 6 4011 Meiji Jingu Stadium /api/v1/venues/4011 FALSE
#> 7 3670 Madonna Stadium /api/v1/venues/3670 FALSE
#> 8 3090 Fukuoka Dome /api/v1/venues/3090 FALSE
#> 9 5530 Chiba Marine Stadium /api/v1/venues/5530 FALSE
#> 10 5531 Kobe Sports Park Baseball Stadium /api/v1/venues/5531 FALSE
#> # … with 965 more rows
try(mlb_venues(venue_ids = 4781))
#> ── MLB Venues data from MLB.com ───────────────────── baseballr 1.2.0 ──
#> ℹ Data updated: 2022-04-30 07:16:47 UTC
#> # A tibble: 1 × 4
#> venue_id venue_name venue_link active
#> <int> <chr> <chr> <lgl>
#> 1 4781 Bush Field /api/v1/venues/4781 FALSE
try(mlb_venues(sport_ids = 1))
#> ── MLB Venues data from MLB.com ───────────────────── baseballr 1.2.0 ──
#> ℹ Data updated: 2022-04-30 07:16:47 UTC
#> # A tibble: 55 × 4
#> venue_id venue_name venue_link active
#> <int> <chr> <chr> <lgl>
#> 1 1 Angel Stadium /api/v1/venues/1 TRUE
#> 2 2 Oriole Park at Camden Yards /api/v1/venues/2 TRUE
#> 3 3 Fenway Park /api/v1/venues/3 TRUE
#> 4 4 Guaranteed Rate Field /api/v1/venues/4 TRUE
#> 5 5380 CoolToday Park /api/v1/venues/5380 TRUE
#> 6 5 Progressive Field /api/v1/venues/5 TRUE
#> 7 7 Kauffman Stadium /api/v1/venues/7 TRUE
#> 8 5000 The Ballpark of the Palm Beaches /api/v1/venues/5000 TRUE
#> 9 10 Oakland Coliseum /api/v1/venues/10 TRUE
#> 10 12 Tropicana Field /api/v1/venues/12 TRUE
#> # … with 45 more rows
# }