Learn R Programming

ncaavolleyballr (version 0.4.3)

player_match_stats: Extract player statistics for a particular match

Description

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"
)

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.

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).

See Also

Other functions that extract player statistics: player_season_stats()

Examples

Run this code
if (FALSE) { # interactive()
player_match_stats(contest = "6080706")
}

Run the code above in your browser using DataLab