MLB Baseball Stats
Value
Returns a tibble with the following columns:
col_name | types |
stat_name | character |
stat_lookup_param | character |
is_counting | logical |
stat_label | character |
stat_group | character |
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
# }