load_wnba_stats_leaguedash: *Load wehoop WNBA Stats League Dashboard cube*

View source: R/load_wnba_stats.R

load_wnba_stats_leaguedashR Documentation

Load wehoop WNBA Stats League Dashboard cube

Description

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.

Usage

load_wnba_stats_leaguedash(
  seasons = most_recent_wnba_stats_season(),
  table = NULL,
  ...,
  dbConnection = NULL,
  tablename = NULL
)

Arguments

seasons

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)

table

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.

dbConnection

A DBIConnection object, as returned by DBI::dbConnect()

tablename

The name of the data table within the database

Value

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.

See Also

Other WNBA Stats loader functions: load_wnba_stats_rosters()

Examples


  try(load_wnba_stats_leaguedash(seasons = most_recent_wnba_stats_season(),
                                 table = "player_bio"))


wehoop documentation built on Aug. 25, 2026, 1:06 a.m.