Skip to contents

MLB Baseball Stats

Usage

mlb_baseball_stats()

Value

Returns a tibble with the following columns:

col_nametypes
stat_namecharacter
stat_lookup_paramcharacter
is_countinglogical
stat_labelcharacter
stat_groupcharacter

Examples

# \donttest{
  try(mlb_baseball_stats())
#> ── MLB Baseball Stats data from MLB.com ───────────── baseballr 1.6.0 ──
#>  Data updated: 2024-04-13 21:56:02 UTC
#> # A tibble: 296 × 5
#>    stat_name        stat_lookup_param is_counting stat_label stat_group
#>    <chr>            <chr>             <lgl>       <chr>      <chr>     
#>  1 airOuts          ao                TRUE        Airouts    pitching  
#>  2 assists          a                 TRUE        Assist     fielding  
#>  3 assists          a                 TRUE        Assist     catching  
#>  4 atBats           ab                TRUE        NA         hitting   
#>  5 atBats           ab                TRUE        NA         catching  
#>  6 atBatsPerHomeRun NA                FALSE       NA         hitting   
#>  7 balk             bk                TRUE        Balk       pitching  
#>  8 battingAverage   avg               FALSE       NA         hitting   
#>  9 battingAverage   avg               FALSE       NA         pitching  
#> 10 battingAverage   avg               FALSE       NA         catching  
#> # ℹ 286 more rows
# }