The NCAA's page for a match/contest includes a tab called "Play By Play". This function extracts the tables of play-by-play information for each set.
Arguments
- contest
Contest ID determined by NCAA for match. To find ID, use
find_team_contests()
for a team and season.
Value
Returns a data frame of set number, teams, score, event, and player responsible for the event.
Examples
# \donttest{
match_pbp(contest = "6080706")
#> # A tibble: 1,448 × 8
#> set away_team home_team score team event player description
#> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 1 Louisville Penn St. 0-0 Louisville Serve Payto… Payton Pet…
#> 2 1 Louisville Penn St. 0-0 Penn St. Reception Jocel… Reception …
#> 3 1 Louisville Penn St. 0-0 Penn St. Set Izzy … Set by Izz…
#> 4 1 Louisville Penn St. 0-0 Penn St. Attack Taylo… Attack by …
#> 5 1 Louisville Penn St. 0-1 Penn St. First ball ki… Taylo… First ball…
#> 6 1 Louisville Penn St. 0-1 Penn St. Serve Gilli… Gillian Gr…
#> 7 1 Louisville Penn St. 0-1 Louisville Reception Payto… Reception …
#> 8 1 Louisville Penn St. 0-1 Louisville Set Elle … Set by Ell…
#> 9 1 Louisville Penn St. 0-1 Louisville Attack Cara … Attack by …
#> 10 1 Louisville Penn St. 1-1 Louisville First ball ki… Cara … First ball…
#> # ℹ 1,438 more rows
# }