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.6.0 ──
#>  Data updated: 2024-04-13 21:56:39 UTC
#> # A tibble: 2 × 8
#>   game_pk game_date  fullName      id team  team_id home_plate_full_name
#>     <int> <chr>      <chr>      <int> <chr>   <int> <chr>               
#> 1  566001 2019-04-29 Tanner R… 543699 Cinc…     113 Gabe Morales        
#> 2  566001 2019-04-29 Zack Whe… 554430 New …     121 Gabe Morales        
#> # ℹ 1 more variable: home_plate_id <int>
# }