Learn R Programming

baseballr (version 1.6.0)

mlb_game_info: Retrieve additional game information for major and minor league games

Description

Retrieve additional game information for major and minor league games

Usage

mlb_game_info(game_pk)

Value

Returns a tibble that includes supplemental information, such as weather, official scorer, attendance, etc., for the game_pk provided

col_nametypes
game_datecharacter
game_pknumeric
venue_namecharacter
venue_idinteger
temperaturecharacter
other_weathercharacter
windcharacter
attendancecharacter
start_timecharacter
elapsed_timecharacter
game_idcharacter
game_typecharacter
home_sport_codecharacter
official_scorercharacter
datecharacter
status_indcharacter
home_league_idinteger
gameday_swcharacter

Arguments

game_pk

The unique game_pk identifier for the game

Examples

Run this code
# \donttest{
  try(mlb_game_info(game_pk = 566001))
# }

Run the code above in your browser using DataLab