Skip to contents

MLB Metrics

Usage

mlb_metrics()

Value

Returns a tibble with the following columns

col_nametypes
metric_namecharacter
metric_idinteger
stat_groupcharacter
metric_unitcharacter

Examples

# \donttest{
  try(mlb_metrics())
#> ── MLB Metrics data from MLB.com ──────────────────── baseballr 1.6.0 ──
#>  Data updated: 2024-01-15 11:30:25 UTC
#> # A tibble: 22 × 4
#>    metric_name        metric_id stat_group        metric_unit
#>    <chr>                  <int> <chr>             <chr>      
#>  1 ""                         0 NA                NA         
#>  2 "releaseSpinRate"       1000 pitching          RPM        
#>  3 "releaseExtension"      1001 pitching          FT         
#>  4 "releaseSpeed"          1002 pitching          MPH        
#>  5 "effectiveSpeed"        1028 pitching          MPH        
#>  6 "launchSpeed"           1003 hitting, pitching MPH        
#>  7 "launchAngle"           1005 hitting, pitching DEG        
#>  8 "generatedSpeed"        1044 hitting, pitching MPH        
#>  9 "maxHeight"             1039 hitting           FT         
#> 10 "travelTime"            1049 hitting           SEC        
#> # ℹ 12 more rows
# }