helper that loads multiple seasons from the data repo either into memory or writes it into a db using some forwarded arguments in the dots
Usage
load_wnba_player_box(
seasons = most_recent_wnba_season(),
...,
dbConnection = NULL,
tablename = NULL
)Arguments
- seasons
A vector of 4-digit years associated with given WNBA seasons. (Min: 2002)
- ...
Additional arguments passed to an underlying function that writes the season data into a database (used by
update_wnba_db()).- dbConnection
A
DBIConnectionobject, as returned byDBI::dbConnect()- tablename
The name of the player box data table within the database
Examples
# \donttest{
try(load_wnba_player_box())
#> ──────────────────────────────────────────────────────────────── wehoop 3.0.0 ──
#> # A tibble: 701 × 57
#> game_id season season_type game_date game_date_time athlete_id
#> <int> <int> <int> <date> <dttm> <int>
#> 1 401856919 2026 2 2026-05-18 2026-05-18 22:00:00 4433408
#> 2 401856919 2026 2 2026-05-18 2026-05-18 22:00:00 4433635
#> 3 401856919 2026 2 2026-05-18 2026-05-18 22:00:00 2490553
#> 4 401856919 2026 2 2026-05-18 2026-05-18 22:00:00 3922628
#> 5 401856919 2026 2 2026-05-18 2026-05-18 22:00:00 4433412
#> 6 401856919 2026 2 2026-05-18 2026-05-18 22:00:00 4684384
#> 7 401856919 2026 2 2026-05-18 2026-05-18 22:00:00 5105732
#> 8 401856919 2026 2 2026-05-18 2026-05-18 22:00:00 5345319
#> 9 401856919 2026 2 2026-05-18 2026-05-18 22:00:00 4433514
#> 10 401856919 2026 2 2026-05-18 2026-05-18 22:00:00 4703609
#> # ℹ 691 more rows
#> # ℹ 51 more variables: athlete_display_name <chr>, team_id <int>,
#> # team_name <chr>, team_location <chr>, team_short_display_name <chr>,
#> # minutes <dbl>, field_goals_made <int>, field_goals_attempted <int>,
#> # three_point_field_goals_made <int>,
#> # three_point_field_goals_attempted <int>, free_throws_made <int>,
#> # free_throws_attempted <int>, offensive_rebounds <int>, …
# }
