Learn R Programming

ncaavolleyballr (version 0.4.3)

team_season_stats: Extract teams statistics for season statistics from 2020-2024

Description

The NCAA's main page for a team includes a tab called "Game By Game" and a section called "Career Totals". This function extracts season summary stats.

Usage

team_season_stats(team = NULL, opponent = FALSE, sport = "WVB")

Value

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

Arguments

team

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

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

See Also

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

Examples

Run this code
if (FALSE) { # interactive()
team_season_stats(team = "Nebraska")
}

Run the code above in your browser using DataLab