Skip to contents

MLB Pitch Codes

Usage

mlb_pitch_codes()

Value

Returns a tibble with the following columns

col_nametypes
pitch_codecharacter
pitch_descriptioncharacter

Examples

# \donttest{
  try(mlb_pitch_codes())
#> ── MLB Pitch Codes data from MLB.com ──────────────── baseballr 1.2.0 ──
#>  Data updated: 2022-04-30 07:16:22 UTC
#> # A tibble: 32 × 2
#>    pitch_code pitch_description              
#>    <chr>      <chr>                          
#>  1 R          Strike - Foul on Pitchout      
#>  2 Y          Pitchout Hit Into Play - Out(s)
#>  3 M          Strike - Missed Bunt           
#>  4 X          Hit Into Play - Out(s)         
#>  5 O          Strike - Bunt Foul Tip         
#>  6 E          Hit Into Play - Run(s)         
#>  7 D          Hit Into Play - No Out(s)      
#>  8 Q          Strike - Swinging on Pitchout  
#>  9 Z          Pitchout Hit Into Play - Run(s)
#> 10 F          Strike - Foul                  
#> # … with 22 more rows
# }