Skip to contents

MLB Situation Codes

Usage

mlb_situation_codes()

Value

Returns a tibble with the following columns

col_nametypes
situation_codecharacter
sort_orderinteger
navigation_menucharacter
situation_code_descriptioncharacter
teamlogical
battinglogical
fieldinglogical
pitchinglogical

Examples

# \donttest{
  try(mlb_situation_codes())
#> ── MLB Situation Codes data from MLB.com ──────────── baseballr 1.6.0 ──
#>  Data updated: 2024-04-13 21:56:45 UTC
#> # A tibble: 602 × 8
#>    situation_code sort_order navigation_menu situation_code_description
#>    <chr>               <int> <chr>           <chr>                     
#>  1 h                       1 Game            Home Games                
#>  2 a                       2 Game            Away Games                
#>  3 d                       3 Game            Day Games                 
#>  4 n                       4 Game            Night Games               
#>  5 g                       5 Game            On Grass                  
#>  6 t                       6 Game            On Turf                   
#>  7 2                      20 Month           February                  
#>  8 3                      21 Month           March                     
#>  9 4                      22 Month           April                     
#> 10 5                      23 Month           May                       
#> # ℹ 592 more rows
#> # ℹ 4 more variables: team <lgl>, batting <lgl>, fielding <lgl>,
#> #   pitching <lgl>
# }