Learn R Programming

baseballr (version 0.8.6)

get_game_info_mlb: Retrieve additional game information for major and minor league games via the MLB api http://statsapi.mlb.com/api/

Description

Retrieve additional game information for major and minor league games via the MLB api http://statsapi.mlb.com/api/

Usage

get_game_info_mlb(game_pk)

Arguments

game_pk

The unique game_pk identifier for the game

Value

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

Examples

Run this code
# NOT RUN {
get_probables_mlb(566001)
# }

Run the code above in your browser using DataLab