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. (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
seasonintegerSeason identifier (4-digit year or 'YYYY-YY' string).
person_idcharacterUnique player identifier (V3 endpoints).
player_namecharacterPlayer name.
round_numberintegerNumeric round.
round_pickintegerRound pick.
overall_pickintegerOverall pick.
team_idcharacterUnique 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_flagcharacterPlayer profile flag.

Examples

# \donttest{
  try(load_wnba_stats_draft(seasons = most_recent_wnba_stats_season()))
#> ──────────────────────────────────────────────────────────────── wehoop 3.0.0 ──
#> # A tibble: 45 × 15
#>    person_id player_name  season round_number round_pick overall_pick draft_type
#>    <chr>     <chr>         <int> <chr>        <chr>      <chr>        <chr>     
#>  1 257829    Azzi Fudd      2026 1            1          1            Draft     
#>  2 257831    Olivia Miles   2026 1            2          2            Draft     
#>  3 257826    Awa Fam Thi…   2026 1            3          3            Draft     
#>  4 257833    Lauren Betts   2026 1            4          4            Draft     
#>  5 257920    Gabriela Ja…   2026 1            5          5            Draft     
#>  6 257922    Kiki Rice      2026 1            6          6            Draft     
#>  7 257918    Iyana Martí…   2026 1            7          7            Draft     
#>  8 257840    Flau'jae Jo…   2026 1            8          8            Draft     
#>  9 257964    Angela Duga…   2026 1            9          9            Draft     
#> 10 257844    Raven Johns…   2026 1            10         10           Draft     
#> # ℹ 35 more rows
#> # ℹ 8 more variables: team_id <chr>, team_city <chr>, team_name <chr>,
#> #   team_abbreviation <chr>, organization <chr>, organization_type <chr>,
#> #   player_profile_flag <chr>, season_2 <int>
# }