Skip to contents

Download a data frame of supplemental data about MLB games since 2008.

Usage

load_game_info_sup()

Value

Function returns a tibble with various columns, including:

  • game_pk

  • game_date

  • venue id

  • attendance

  • game temperature

  • wind speed

  • direction

  • start time

  • end time

Examples

# \donttest{
  try(load_game_info_sup())
#> ── Supplementary MLB Game Info data from baseballr-data repository ─────
#>  Data updated: 2022-04-30 07:15:32 UTC
#> # A tibble: 39,812 × 18
#>    game_date  game_pk venue_name      venue_id temperature other_weather
#>    <date>       <int> <chr>              <int>       <int> <chr>        
#>  1 2022-04-28  663078 Great American…     2602          55 Partly Cloudy
#>  2 2022-04-28  662295 PNC Park              31          43 Sunny        
#>  3 2022-04-28  661641 Citizens Bank …     2681          52 Sunny        
#>  4 2022-04-28  662538 Nationals Park      3309          48 Sunny        
#>  5 2022-04-28  661305 Yankee Stadium      3313          52 Sunny        
#>  6 2022-04-28  661908 Tropicana Field       12          72 Dome         
#>  7 2022-04-28  661729 Target Field        3312          45 Overcast     
#>  8 2022-04-28  661912 Globe Life Fie…     5325          72 Roof Closed  
#>  9 2022-04-28  661532 Guaranteed Rat…        4          50 Overcast     
#> 10 2022-04-28  661827 Rogers Centre         14          68 Roof Closed  
#> # … with 39,802 more rows, and 12 more variables: wind <chr>,
#> #   attendance <chr>, start_time <chr>, elapsed_time <chr>,
#> #   game_id <chr>, game_type <chr>, home_sport_code <chr>,
#> #   official_scorer <chr>, date <chr>, status_ind <chr>,
#> #   home_league_id <int>, gameday_sw <chr>
# }