Learn R Programming

baseballr (version 1.5.0)

mlb_venues: Find MLB Venues

Description

Find MLB Venues

Usage

mlb_venues(venue_ids = NULL, sport_ids = NULL, season = NULL)

Value

Returns a tibble with the following columns:

col_nametypes
venue_idinteger
venue_namecharacter
venue_linkcharacter
activelogical
seasonlogical

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.

Examples

Run this code
# \donttest{
  try(mlb_venues())
  try(mlb_venues(venue_ids = 4781))
  try(mlb_venues(sport_ids = 1))
# }

Run the code above in your browser using DataLab