Skip to contents

The NCAA's main page for a team includes a tab called "Game By Game" and a section called "Game by Game Stats". This function extracts the team's summary statistics for each match of the season.

Usage

team_match_stats(team_id = NULL, opponent = FALSE, sport = "WVB")

Arguments

team_id

Team ID determined by NCAA for season. To find ID, use find_team_id().

opponent

Logical indicating whether to include team's stats (FALSE) or opponent's stats (TRUE). Default is set to FALSE, returning team stats.

sport

Three letter abbreviation for NCAA sport (must be upper case; for example "WVB" for women's volleyball and "MVB" for men's volleyball).

Value

Returns a data frame of summary team statistics for each match of the season.

See also

Other functions that extract team statistics: team_season_info(), team_season_stats()

Examples

# \donttest{
team_match_stats(team_id = "585290")
#> # A tibble: 37 × 21
#>    Date      Team  Conference Opponent Result     S Kills Errors `Total Attacks`
#>    <chr>     <chr> <chr>      <chr>    <chr>  <dbl> <dbl>  <dbl>           <dbl>
#>  1 08/27/20… Nebr… Big Ten    Kentuck… W 3-1      4    47     16             120
#>  2 08/30/20… Nebr… Big Ten    A&M-Cor… W 3-0      3    48      7              96
#>  3 08/31/20… Nebr… Big Ten    TCU      W 3-1      4    55     25             141
#>  4 09/03/20… Nebr… Big Ten    @ SMU    L 0-3      3    36     18             105
#>  5 09/05/20… Nebr… Big Ten    The Cit… W 3-0      3    43      7              98
#>  6 09/07/20… Nebr… Big Ten    Montana… W 3-0      3    47     11              90
#>  7 09/10/20… Nebr… Big Ten    Creight… W 3-2      5    73     27             193
#>  8 09/13/20… Nebr… Big Ten    Arizona… W 3-0      3    48     12             113
#>  9 09/14/20… Nebr… Big Ten    Wichita… W 3-0      3    50      8              88
#> 10 09/18/20… Nebr… Big Ten    Stanford W 3-0      3    38     13              95
#> # ℹ 27 more rows
#> # ℹ 12 more variables: `Hit Pct` <dbl>, Assists <dbl>, Aces <dbl>, SErr <dbl>,
#> #   Digs <dbl>, RetAtt <dbl>, RErr <dbl>, `Block Solos` <dbl>,
#> #   `Block Assists` <dbl>, BErr <dbl>, PTS <dbl>, BHE <dbl>
# }