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.2.0 ──
#>  Data updated: 2022-04-30 07:15:40 UTC
#> # A tibble: 263 × 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  
#> # … with 253 more rows
# }