mlb_game_wp: *Acquire win probability for Major and Minor League games*

View source: R/mlb_game_wp.R

mlb_game_wpR 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))


baseballr documentation built on April 1, 2023, 12:12 a.m.