Skip to contents

MLB Event Types

Usage

mlb_event_types()

Value

Returns a tibble with the following columns

col_nametypes
plate_appearancelogical
hitlogical
event_codecharacter
base_running_eventlogical
event_descriptioncharacter

Examples

# \donttest{
  try(mlb_event_types())
#> ── MLB Event Types data from MLB.com ──────────────── baseballr 1.6.0 ──
#>  Data updated: 2024-04-13 21:56:09 UTC
#> # A tibble: 74 × 5
#>    plate_appearance hit   event_code       base_running_event
#>    <lgl>            <lgl> <chr>            <lgl>             
#>  1 FALSE            FALSE pickoff_1b       TRUE              
#>  2 FALSE            FALSE pickoff_2b       TRUE              
#>  3 FALSE            FALSE pickoff_3b       TRUE              
#>  4 FALSE            FALSE pitcher_step_off FALSE             
#>  5 FALSE            FALSE pickoff_error_1b TRUE              
#>  6 FALSE            FALSE pickoff_error_2b TRUE              
#>  7 FALSE            FALSE pickoff_error_3b TRUE              
#>  8 FALSE            FALSE batter_timeout   FALSE             
#>  9 FALSE            FALSE mound_visit      FALSE             
#> 10 FALSE            FALSE no_pitch         FALSE             
#> # ℹ 64 more rows
#> # ℹ 1 more variable: event_description <chr>
# }