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.2.0 ──
#>  Data updated: 2022-04-30 07:15:51 UTC
#> # A tibble: 70 × 5
#>    plate_appearance hit   event_code   base_running_ev… event_descripti…
#>    <lgl>            <lgl> <chr>        <lgl>            <chr>           
#>  1 FALSE            FALSE pickoff_1b   TRUE             Pickoff 1B      
#>  2 FALSE            FALSE pickoff_2b   TRUE             Pickoff 2B      
#>  3 FALSE            FALSE pickoff_3b   TRUE             Pickoff 3B      
#>  4 FALSE            FALSE pickoff_err… TRUE             Pickoff Error 1B
#>  5 FALSE            FALSE pickoff_err… TRUE             Pickoff Error 2B
#>  6 FALSE            FALSE pickoff_err… TRUE             Pickoff Error 3B
#>  7 FALSE            FALSE no_pitch     FALSE            No Pitch        
#>  8 TRUE             TRUE  single       FALSE            Single          
#>  9 TRUE             TRUE  double       FALSE            Double          
#> 10 TRUE             TRUE  triple       FALSE            Triple          
#> # … with 60 more rows
# }