mlb_game_wp {baseballr} | R Documentation |
Acquire win probability for Major and Minor League games
Description
Acquire win probability for Major and Minor League games
Usage
mlb_game_wp(game_pk, timecode = NULL)
Arguments
game_pk |
The game_pk for the game requested |
timecode |
The time code for the MLB game (format: MMDDYYYY_HHMMSS) |
Value
Returns a tibble that includes time codes from the game_pk requested
col_name | types |
home_team_win_probability | numeric |
away_team_win_probability | numeric |
home_team_win_probability_added | numeric |
at_bat_index | integer |
leverage_index | numeric |
Examples
try(mlb_game_wp(game_pk = 531060))
[Package baseballr version 1.6.0 Index]