Skip to contents

Loads season-level WNBA draft picks scraped from the WNBA Stats API (drafthistory-style outputs). One row per pick. Backed by the wehoop-wnba-stats-data pipeline that reads raw JSONs from wehoop-wnba-stats-raw and publishes parquet/rds artifacts to the wnba_stats_draft release tag.

load_wnba_stats_draft_manifest() returns the per-season manifest CSV (season, row_count, generated_at_utc, source_endpoint) for the WNBA Stats draft release tag without downloading any season's full data.

Usage

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

load_wnba_stats_draft_manifest()

Arguments

seasons

A vector of 4-digit years associated with given WNBA draft seasons. Published coverage runs 1997 through the most recent season, with no gaps. Pass seasons = TRUE for every published season. (Min: 1997)

...

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 draft data table within the database

Value

Returns a wehoop_data tibble of WNBA draft picks.

col_nametypesdescription
person_idintegerUnique player identifier (V3 endpoints).
player_namecharacterPlayer name.
seasonintegerSeason identifier (4-digit year).
round_numberintegerNumeric round.
round_pickintegerRound pick.
overall_pickintegerOverall pick.
draft_typecharacterDraft type ('Draft', 'Allocation' or 'Elite').
team_idintegerUnique team identifier.
team_citycharacterTeam city or region (e.g. 'Las Vegas').
team_namecharacterFull team display name (e.g. 'Las Vegas Aces').
team_abbreviationcharacterShort team abbreviation (e.g. 'LAS').
organizationcharacterOrganization.
organization_typecharacterOrganization type.
player_profile_flagintegerPlayer profile flag.

Examples

# \donttest{
  try(load_wnba_stats_draft(seasons = most_recent_wnba_stats_season()))
#> ──────────────────────────────────────────────────────────────── wehoop 3.0.0 ──
#> # A tibble: 45 × 14
#>    person_id player_name  season round_number round_pick overall_pick draft_type
#>        <int> <chr>         <int>        <int>      <int>        <int> <chr>     
#>  1   1643425 Azzi Fudd      2026            1          1            1 Draft     
#>  2   1643426 Olivia Miles   2026            1          2            2 Draft     
#>  3   1643443 Awa Fam        2026            1          3            3 Draft     
#>  4   1643427 Lauren Betts   2026            1          4            4 Draft     
#>  5   1643447 Gabriela Ja…   2026            1          5            5 Draft     
#>  6   1643445 Kiki Rice      2026            1          6            6 Draft     
#>  7   1643446 Iyana Martin   2026            1          7            7 Draft     
#>  8   1643428 Flau'jae Jo…   2026            1          8            8 Draft     
#>  9   1643455 Angela Duga…   2026            1          9            9 Draft     
#> 10   1643433 Raven Johns…   2026            1         10           10 Draft     
#> # ℹ 35 more rows
#> # ℹ 7 more variables: team_id <int>, team_city <chr>, team_name <chr>,
#> #   team_abbreviation <chr>, organization <chr>, organization_type <chr>,
#> #   player_profile_flag <int>
# }