Skip to contents

The NCAA's page for a match/contest includes a tab called "Individual Statistics". This function extracts the tables of player match statistics for both home and away teams, as well as team statistics (though these can be omitted). If a particular team is specified, only that team's statistics will be returned.

Usage

player_match_stats(
  contest = NULL,
  team = NULL,
  team_stats = TRUE,
  sport = "WVB"
)

Arguments

contest

Contest ID determined by NCAA for match. To find ID, use find_team_contests() for a team and season.

team

Name of school. Must match name used by NCAA. Find exact team name with find_team_name().

team_stats

Logical indicating whether to include (TRUE) or exclude (FALSE) team statistics. Default includes team statistics with player statistics.

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

By default, returns data frame that includes both home and away team match statistics. If team is specified, only that team's data are returned.

See also

Other functions that extract player statistics: player_season_stats()

Examples

# \donttest{
player_match_stats(contest = "6080706")
#> # A tibble: 26 × 26
#>    Season    Date       Team    Conference `Opponent Team` `Opponent Conference`
#>    <chr>     <date>     <chr>   <chr>      <chr>           <chr>                
#>  1 2024-2025 2024-12-22 Louisv… ACC        Penn St.        Big Ten              
#>  2 2024-2025 2024-12-22 Louisv… ACC        Penn St.        Big Ten              
#>  3 2024-2025 2024-12-22 Louisv… ACC        Penn St.        Big Ten              
#>  4 2024-2025 2024-12-22 Louisv… ACC        Penn St.        Big Ten              
#>  5 2024-2025 2024-12-22 Louisv… ACC        Penn St.        Big Ten              
#>  6 2024-2025 2024-12-22 Louisv… ACC        Penn St.        Big Ten              
#>  7 2024-2025 2024-12-22 Louisv… ACC        Penn St.        Big Ten              
#>  8 2024-2025 2024-12-22 Louisv… ACC        Penn St.        Big Ten              
#>  9 2024-2025 2024-12-22 Louisv… ACC        Penn St.        Big Ten              
#> 10 2024-2025 2024-12-22 Louisv… ACC        Penn St.        Big Ten              
#> # ℹ 16 more rows
#> # ℹ 20 more variables: Location <chr>, Number <dbl>, Player <chr>, P <chr>,
#> #   S <int>, Kills <int>, Errors <int>, TotalAttacks <int>, HitPct <dbl>,
#> #   Assists <int>, Aces <int>, SErr <int>, Digs <int>, RetAtt <int>,
#> #   RErr <int>, BlockSolos <int>, BlockAssists <int>, BErr <int>, PTS <dbl>,
#> #   BHE <int>
# }