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
DBIConnection
object, as returned byDBI::dbConnect()
- tablename
The name of the team box data table within the database
Examples
# \donttest{
try(load_wnba_team_box())
#> ──────────────────────────────────────────────────────────────── wehoop 2.0.0 ──
#> # A tibble: 524 × 57
#> game_id season season_type game_date game_date_time team_id team_uid
#> <int> <int> <int> <date> <dttm> <int> <chr>
#> 1 401578574 2023 3 2023-10-18 2023-10-18 20:00:00 17 s:40~l:5…
#> 2 401578574 2023 3 2023-10-18 2023-10-18 20:00:00 9 s:40~l:5…
#> 3 401578573 2023 3 2023-10-15 2023-10-15 15:00:00 17 s:40~l:5…
#> 4 401578573 2023 3 2023-10-15 2023-10-15 15:00:00 9 s:40~l:5…
#> 5 401578572 2023 3 2023-10-11 2023-10-11 21:00:00 9 s:40~l:5…
#> 6 401578572 2023 3 2023-10-11 2023-10-11 21:00:00 17 s:40~l:5…
#> 7 401578571 2023 3 2023-10-08 2023-10-08 15:00:00 9 s:40~l:5…
#> 8 401578571 2023 3 2023-10-08 2023-10-08 15:00:00 17 s:40~l:5…
#> 9 401578567 2023 3 2023-10-01 2023-10-01 15:00:00 9 s:40~l:5…
#> 10 401578567 2023 3 2023-10-01 2023-10-01 15:00:00 18 s:40~l:5…
#> # ℹ 514 more rows
#> # ℹ 50 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>, …
# }