Loads one asset of the wnba_stats_leaguedash release tag --
the Python-scraped leaguedash* parameter cube that supersedes the old
R-scraped player / team / lineups / standings tags. The cube publishes
24 tables per season and is the full surface behind the compatibility
reshapes in load_wnba_stats_player_stats(),
load_wnba_stats_team_stats(), load_wnba_stats_lineups() and
load_wnba_stats_standings(); several tables (player_bio,
*_master, team_stats_fourfactors, the non-5-man and non-Base/Advanced
lineups_* measures) are reachable only through this function.
load_wnba_stats_leaguedash(
seasons = most_recent_wnba_stats_season(),
table = NULL,
...,
dbConnection = NULL,
tablename = NULL
)Returns a wehoop_data tibble of the requested cube table, one
row per player-season, team-season or lineup-season depending on
table. Column sets differ per table; the *_master tables are wide
joins of every measure type for that entity.
A vector of 4-digit years associated with given WNBA seasons.
Published coverage runs 1997 through the most recent season, with no
gaps. Pass seasons = TRUE for every published season. (Min: 1997)
Name of the cube table to load. One of player_bio,
player_master, player_stats_base, player_stats_advanced,
player_stats_misc, player_stats_scoring, player_stats_usage,
player_stats_defense, team_master, team_stats_base,
team_stats_advanced, team_stats_misc, team_stats_scoring,
team_stats_defense, team_stats_opponent, team_stats_fourfactors,
lineups_master, lineups_base, lineups_advanced, lineups_misc,
lineups_scoring, lineups_opponent, lineups_fourfactors,
standings.
Additional arguments passed to an underlying function that writes the season data into a database.
A DBIConnection object, as returned by DBI::dbConnect()
The name of the data table within the database
Other WNBA Stats loader functions:
load_wnba_stats_rosters()
# \donttest{
try(load_wnba_stats_leaguedash(seasons = most_recent_wnba_stats_season(),
table = "player_bio"))
# }
Run the code above in your browser using DataLab