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: 3,475 × 57
#> game_id season season_type game_date game_date_time athlete_id
#> <int> <int> <int> <date> <dttm> <int>
#> 1 401857033 2026 2 2026-06-28 2026-06-28 19:00:00 2998928
#> 2 401857033 2026 2 2026-06-28 2026-06-28 19:00:00 4683006
#> 3 401857033 2026 2 2026-06-28 2026-06-28 19:00:00 2999101
#> 4 401857033 2026 2 2026-06-28 2026-06-28 19:00:00 4066533
#> 5 401857033 2026 2 2026-06-28 2026-06-28 19:00:00 5345320
#> 6 401857033 2026 2 2026-06-28 2026-06-28 19:00:00 4790258
#> 7 401857033 2026 2 2026-06-28 2026-06-28 19:00:00 4337216
#> 8 401857033 2026 2 2026-06-28 2026-06-28 19:00:00 2327695
#> 9 401857033 2026 2 2026-06-28 2026-06-28 19:00:00 2593770
#> 10 401857033 2026 2 2026-06-28 2026-06-28 19:00:00 3102133
#> # ℹ 3,465 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>, …
# }
