MLB Situation Codes
Value
Returns a tibble with the following columns
col_name | types |
situation_code | character |
sort_order | integer |
navigation_menu | character |
situation_code_description | character |
team | logical |
batting | logical |
fielding | logical |
pitching | logical |
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>
# }