
Extract teams statistics for season statistics from 2001-2024
Source:R/team_season_stats.R
team_season_stats.Rd
The NCAA's main page for a team includes a tab called "Game By Game" and a section called "Career Totals". Though the page only shows one season's worth of information, this function extracts season summary stats starting with 2001. We have included the conference starting with 2020 (conference data for previous seasons is not currently available).
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).
Note
This function requires internet connectivity as it checks the NCAA website for information.
See also
Other functions that extract team statistics:
team_match_stats()
,
team_season_info()