Skip to contents

MLB Logical Events

Usage

mlb_logical_events()

Value

Returns a tibble with the following columns

col_nametypes
event_codecharacter

Examples

# \donttest{
  try(mlb_logical_events())
#> ── MLB Logical Events data from MLB.com ───────────── baseballr 1.2.0 ──
#>  Data updated: 2022-04-30 07:16:16 UTC
#> # A tibble: 73 × 1
#>    event_code                     
#>    <chr>                          
#>  1 sceneStateUpdate               
#>  2 newBatter                      
#>  3 newLeftHandedBatter            
#>  4 newLeftHandedBatterWithPitches 
#>  5 newRightHandedBatter           
#>  6 newRightHandedBatterWithPitches
#>  7 newRightHandedHit              
#>  8 newLeftHandedHit               
#>  9 batterSwitchedToLeftHanded     
#> 10 batterSwitchedToRightHanded    
#> # … with 63 more rows
# }