Skip to contents

Retrieve probable starters for a given MLB game

Usage

mlb_probables(game_pk)

Arguments

game_pk

The unique game_pk identifier for the game

Value

Returns a tiible that includes probable starting pitchers and the home plate umpire for the game_pk requested including the following columns:

col_nametypes
game_pkinteger
game_datecharacter
fullNamecharacter
idinteger
teamcharacter
team_idinteger
home_plate_full_namecharacter
home_plate_idinteger

Examples

# \donttest{
  try(mlb_probables(566001))
#> ── MLB Probables data from MLB.com ────────────────── baseballr 1.2.0 ──
#>  Data updated: 2022-04-30 07:16:25 UTC
#> # A tibble: 2 × 8
#>   game_pk game_date  fullName         id team   team_id home_plate_full…
#>     <int> <chr>      <chr>         <int> <chr>    <int> <chr>           
#> 1  566001 2019-04-29 Tanner Roark 543699 Cinci…     113 Gabe Morales    
#> 2  566001 2019-04-29 Zack Wheeler 554430 New Y…     121 Gabe Morales    
#> # … with 1 more variable: home_plate_id <int>
# }