Learn R Programming

wehoop (version 3.0.0)

load_wnba_player_impact: Load WNBA player-impact ratings (RAPM / SPM / BPM / DARKO) from the data repo

Description

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 )

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.

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

Author

Saiem Gilani

Examples

Run this code
# \donttest{
  try(load_wnba_player_impact(seasons = most_recent_wnba_stats_season()))
# }
# \donttest{
  try(load_wbb_player_value(seasons = most_recent_wbb_season()))
# }
# \donttest{
  try(load_wbb_ratings(seasons = most_recent_wbb_season()))
# }

Run the code above in your browser using DataLab