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_team_box(
seasons = most_recent_wnba_season(),
...,
dbConnection = NULL,
tablename = NULL
)Arguments
- seasons
A vector of 4-digit years associated with given WNBA seasons. (Min: 2003)
- ...
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 team box data table within the database
Examples
# \donttest{
try(load_wnba_team_box())
#> ──────────────────────────────────────────────────────────────── wehoop 3.0.0 ──
#> # A tibble: 438 × 59
#> game_id season season_type game_date game_date_time team_id team_uid
#> <int> <int> <int> <date> <dttm> <int> <chr>
#> 1 401857105 2026 2 2026-08-01 2026-08-01 13:00:00 17 s:40~l:5…
#> 2 401857105 2026 2 2026-08-01 2026-08-01 13:00:00 19 s:40~l:5…
#> 3 401857106 2026 2 2026-08-01 2026-08-01 15:00:00 9 s:40~l:5…
#> 4 401857106 2026 2 2026-08-01 2026-08-01 15:00:00 11 s:40~l:5…
#> 5 401857102 2026 2 2026-07-31 2026-07-31 19:30:00 14 s:40~l:5…
#> 6 401857102 2026 2 2026-07-31 2026-07-31 19:30:00 20 s:40~l:5…
#> 7 401857103 2026 2 2026-07-31 2026-07-31 19:30:00 3 s:40~l:5…
#> 8 401857103 2026 2 2026-07-31 2026-07-31 19:30:00 16 s:40~l:5…
#> 9 401857104 2026 2 2026-07-31 2026-07-31 22:00:00 5 s:40~l:5…
#> 10 401857104 2026 2 2026-07-31 2026-07-31 22:00:00 132052 s:40~l:5…
#> # ℹ 428 more rows
#> # ℹ 52 more variables: team_slug <chr>, team_location <chr>, team_name <chr>,
#> # team_abbreviation <chr>, team_display_name <chr>,
#> # team_short_display_name <chr>, team_color <chr>,
#> # team_alternate_color <chr>, team_logo <chr>, team_home_away <chr>,
#> # team_score <int>, team_winner <lgl>, assists <int>, blocks <int>,
#> # defensive_rebounds <int>, fast_break_points <chr>, field_goal_pct <dbl>, …
# }
