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.6.0 ──
#>  Data updated: 2024-04-13 21:56:31 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    
#> # ℹ 63 more rows
# }