Skip to contents

MLB Game Status Codes

Usage

mlb_game_status_codes()

Value

Returns a tibble with the following columns

col_nametypes
abstract_game_statecharacter
coded_game_statecharacter
detailed_statecharacter
status_codecharacter
reasoncharacter
abstract_game_codecharacter

Examples

# \donttest{
  try(mlb_game_status_codes())
#> ── MLB Game Status Codes data from MLB.com ────────── baseballr 1.6.0 ──
#>  Data updated: 2024-04-13 21:56:17 UTC
#> # A tibble: 201 × 6
#>    abstract_game_state coded_game_state detailed_state       status_code
#>    <chr>               <chr>            <chr>                <chr>      
#>  1 Preview             S                Scheduled            S          
#>  2 Preview             P                Pre-Game             P          
#>  3 Live                P                Warmup               PW         
#>  4 Preview             P                Delayed Start: Rain  PR         
#>  5 Preview             P                Delayed Start: Snow  PS         
#>  6 Preview             P                Delayed Start: Wet … PG         
#>  7 Preview             P                Delayed Start: Venue PV         
#>  8 Preview             P                Delayed Start: Fog   PF         
#>  9 Preview             P                Delayed Start: Cold  PC         
#> 10 Preview             P                Delayed Start: Air … PD         
#> # ℹ 191 more rows
#> # ℹ 2 more variables: abstract_game_code <chr>, reason <chr>
# }