Get ESPN's MLS play by play data
espn_mls_pbp(game_id)
Game ID
Returns a play-by-play data frame
# \donttest{
try(espn_mls_pbp(game_id = 598135))
#> # A tibble: 113 × 18
#> sequence text time_display_va… time_value play_short_text play_id play_text
#> <int> <chr> <chr> <int> <chr> <chr> <chr>
#> 1 0 Lineu… "" 0 NA NA NA
#> 2 1 First… "" 0 NA NA NA
#> 3 2 Attem… "3'" 149 Luciano Acosta… 370490… Attempt …
#> 4 3 Corne… "3'" 150 Luciano Acosta… 370489… Corner, …
#> 5 4 Attem… "4'" 187 Tyler Blackett… 370490… Attempt …
#> 6 5 Corne… "7'" 396 Brenner Corner… 370491… Corner, …
#> 7 6 Attem… "8'" 442 Josef Martínez… 370491… Attempt …
#> 8 7 Brenn… "8'" 471 Alan Franco Fo… 370491… Foul by …
#> 9 8 Foul … "8'" 471 Alan Franco Fo… 370491… Foul by …
#> 10 9 Attem… "10'" 550 Zico Bailey Sh… 370492… Attempt …
#> # … with 103 more rows, and 11 more variables: play_period_number <int>,
#> # play_clock_display_value <chr>, play_clock_value <int>,
#> # play_team_display_name <chr>, play_source_description <chr>,
#> # play_source_id <chr>, play_type_id <chr>, play_type_text <chr>, id <chr>,
#> # athlete_1 <chr>, athlete_2 <chr>
# }