Skip to contents

Loads season-level WNBA player-impact ratings – one row per player-team-season, combining regularized adjusted plus-minus (RAPM), statistical plus-minus (SPM), box plus-minus (BPM), wins above replacement (WAR), and a DARKO-style skill/projection pair. Produced by the sdv-py NBA/WNBA possession-engine model program; published to the wnba_player_impact release tag as csv/parquet/rds.

Loads season-level NCAA women's college basketball player-value ratings – one row per player-team-season, with a box-score-derived offensive/defensive/net box plus-minus (BPM). Coverage starts at 2014 (the earliest season with published box-score inputs of sufficient quality for the model); this tag is parquet-only, with no csv/rds sibling assets. Produced by the sdv-py NCAA WBB model program; published to the wbb_player_value release tag.

Loads season-level NCAA women's college basketball team ratings – one row per team-season, with adjusted (opponent-strength-normalized) offensive/defensive efficiency, adjusted tempo, raw efficiency, and a national rank. A KenPom-style adjusted-efficiency-margin rating. This tag is parquet-only, with no csv/rds sibling assets. Produced by the sdv-py NCAA WBB model program; published to the wbb_ratings release tag.

Usage

load_wnba_player_impact(
  seasons = most_recent_wnba_stats_season(),
  ...,
  dbConnection = NULL,
  tablename = NULL
)

load_wbb_player_value(
  seasons = most_recent_wbb_season(),
  ...,
  dbConnection = NULL,
  tablename = NULL
)

load_wbb_ratings(
  seasons = most_recent_wbb_season(),
  ...,
  dbConnection = NULL,
  tablename = NULL
)

Arguments

seasons

A vector of 4-digit season-ending years for NCAA women's college basketball. Published coverage runs 2008 through the most recent season, with no gaps. Pass seasons = TRUE for every published season. (Min: 2008)

...

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 with one row per player-team-season.

col_nametypesdescription
player_idintegerUnique WNBA Stats player identifier.
player_namecharacterPlayer display name.
team_idintegerUnique team identifier.
team_abbreviationcharacterTeam abbreviation.
team_namecharacterFull team display name.
teamscharacterTeam abbreviation(s) the player appeared for this season.
seasonintegerSeason identifier (4-digit year).
season_typecharacterSeason portion (e.g. 'Regular Season').
o_rapmnumericOffensive regularized adjusted plus-minus.
d_rapmnumericDefensive regularized adjusted plus-minus.
rapmnumericNet regularized adjusted plus-minus (o_rapm + d_rapm).
off_possintegerOffensive possessions used in the RAPM fit.
def_possintegerDefensive possessions used in the RAPM fit.
o_adj_rapmnumericOffensive RAPM adjusted for minutes/possession stability.
d_adj_rapmnumericDefensive RAPM adjusted for minutes/possession stability.
adj_rapmnumericNet adjusted RAPM (o_adj_rapm + d_adj_rapm).
ospmnumericOffensive statistical plus-minus (box-score component).
dspmnumericDefensive statistical plus-minus (box-score component).
spmnumericNet statistical plus-minus.
minnumericMinutes played.
gpintegerGames played.
obpmnumericOffensive box plus-minus.
dbpmnumericDefensive box plus-minus.
bpmnumericNet box plus-minus.
warnumericWins above replacement.
darko_filtered_skillnumericDARKO-style filtered skill rating.
darko_projected_ratingnumericDARKO-style forward-looking projected rating.
darko_projected_sdnumericStandard deviation of the DARKO-style projected rating.

Returns a wehoop_data tibble with one row per player-team-season.

col_nametypesdescription
player_idcharacterstats.ncaa.org player identifier.
playercharacterPlayer display name (title-cased).
seasonintegerSeason identifier (4-digit season-ending year).
team_idcharacterUnique team identifier.
minnumericMinutes played.
box_obpmnumericBox-score offensive box plus-minus.
box_dbpmnumericBox-score defensive box plus-minus.
box_bpmnumericBox-score net box plus-minus (box_obpm + box_dbpm).

Returns a wehoop_data tibble with one row per team-season.

col_nametypesdescription
seasonintegerSeason identifier (4-digit season-ending year).
team_idcharacterUnique team identifier.
adj_onumericAdjusted offensive efficiency (points per 100 possessions, opponent-adjusted).
adj_dnumericAdjusted defensive efficiency (points allowed per 100 possessions, opponent-adjusted).
adj_emnumericAdjusted efficiency margin (adj_o minus adj_d).
adj_temponumericAdjusted possessions per 40 minutes.
raw_onumericUnadjusted (raw) offensive efficiency.
raw_dnumericUnadjusted (raw) defensive efficiency.
gamesintegerGames played (season total).
rankintegerNational rank by adj_em.
adj_em_znumericZ-score of adj_em relative to the season's team distribution.

Author

Saiem Gilani

Examples

# \donttest{
  try(load_wnba_player_impact(seasons = most_recent_wnba_stats_season()))
#> ─────────────────────────────────────────────────────────── wehoop 3.0.0.9000 ──
#> # A tibble: 328 × 28
#>    player_id player_name        team_id team_abbreviation team_name teams season
#>        <int> <chr>                <int> <chr>             <chr>     <chr>  <int>
#>  1    201886 DeWanna Bonner      1.61e9 PHX               Phoenix … PHX     2026
#>  2    202252 Alysha Clark        1.61e9 DAL               Dallas W… DAL     2026
#>  3    202664 Courtney Vandersl…  1.61e9 CHI               Chicago … CHI     2026
#>  4    203014 Nneka Ogwumike      1.61e9 LAS               Los Ange… LAS     2026
#>  5    203024 Damiris Dantas      1.61e9 IND               Indiana … IND     2026
#>  6    203026 Tiffany Hayes       1.61e9 GSV               Golden S… GSV     2026
#>  7    203398 Brittney Griner     1.61e9 CON               Connecti… CON     2026
#>  8    203400 Skylar Diggins      1.61e9 CHI               Chicago … CHI     2026
#>  9    203405 Kayla Alexander     1.61e9 TOR               Toronto … TOR     2026
#> 10    203822 Rebekah Gardner     1.61e9 NYL               New York… NYL     2026
#> # ℹ 318 more rows
#> # ℹ 21 more variables: season_type <chr>, o_rapm <dbl>, d_rapm <dbl>,
#> #   rapm <dbl>, off_poss <int>, def_poss <int>, o_adj_rapm <dbl>,
#> #   d_adj_rapm <dbl>, adj_rapm <dbl>, ospm <dbl>, dspm <dbl>, spm <dbl>,
#> #   min <dbl>, gp <int>, obpm <dbl>, dbpm <dbl>, bpm <dbl>, war <dbl>,
#> #   darko_filtered_skill <dbl>, darko_projected_rating <dbl>,
#> #   darko_projected_sd <dbl>
# }
# \donttest{
  try(load_wbb_player_value(seasons = most_recent_wbb_season()))
#> Warning: downloaded length 0 != reported length 9
#> Warning: cannot open URL 'https://github.com/sportsdataverse/sportsdataverse-data/releases/download/wbb_player_value/wbb_player_value_2027.parquet': HTTP status was '404 Not Found'
#> Warning: Failed to download parquet from <https://github.com/sportsdataverse/sportsdataverse-data/releases/download/wbb_player_value/wbb_player_value_2027.parquet>
#> ─────────────────────────────────────────────────────────── wehoop 3.0.0.9000 ──
#> # A tibble: 0 × 0
# }
# \donttest{
  try(load_wbb_ratings(seasons = most_recent_wbb_season()))
#> Warning: downloaded length 0 != reported length 9
#> Warning: cannot open URL 'https://github.com/sportsdataverse/sportsdataverse-data/releases/download/wbb_ratings/wbb_ratings_2027.parquet': HTTP status was '404 Not Found'
#> Warning: Failed to download parquet from <https://github.com/sportsdataverse/sportsdataverse-data/releases/download/wbb_ratings/wbb_ratings_2027.parquet>
#> ─────────────────────────────────────────────────────────── wehoop 3.0.0.9000 ──
#> # A tibble: 0 × 0
# }