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.2.0 ──
#>  Data updated: 2022-04-30 07:16:34 UTC
#> # A tibble: 602 × 8
#>    situation_code sort_order navigation_menu situation_code_descr… team 
#>    <chr>               <int> <chr>           <chr>                 <lgl>
#>  1 h                       1 Game            Home Games            TRUE 
#>  2 a                       2 Game            Away Games            TRUE 
#>  3 d                       3 Game            Day Games             TRUE 
#>  4 n                       4 Game            Night Games           TRUE 
#>  5 g                       5 Game            On Grass              TRUE 
#>  6 t                       6 Game            On Turf               TRUE 
#>  7 2                      20 Month           February              FALSE
#>  8 3                      21 Month           March                 TRUE 
#>  9 4                      22 Month           April                 TRUE 
#> 10 5                      23 Month           May                   TRUE 
#> # … with 592 more rows, and 3 more variables: batting <lgl>,
#> #   fielding <lgl>, pitching <lgl>
# }