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_wbb_team_box(
seasons = most_recent_wbb_season(),
...,
dbConnection = NULL,
tablename = NULL
)
Arguments
- seasons
A vector of 4-digit years associated with given women's college basketball seasons. (Min: 2006)
- ...
Additional arguments passed to an underlying function that writes the season data into a database (used by
update_wbb_db()
).- dbConnection
A
DBIConnection
object, as returned byDBI::dbConnect()
- tablename
The name of the play by play data table within the database
Examples
# \donttest{
try(load_wbb_team_box())
#> ──────────────────────────────────────────────────────────────── wehoop 1.8.0 ──
#> # A tibble: 11,130 × 52
#> game_id season season_…¹ game_date team_id team_…² team_…³ team_…⁴ team_…⁵
#> <int> <int> <int> <date> <int> <chr> <chr> <chr> <chr>
#> 1 401516463 2023 2 2023-03-08 36 s:40~l… colora… Colora… Rams
#> 2 401516463 2023 2 2023-03-08 2751 s:40~l… wyomin… Wyoming Cowgir…
#> 3 401516416 2023 2 2023-03-08 2655 s:40~l… tulane… Tulane Green …
#> 4 401516416 2023 2 2023-03-08 151 s:40~l… east-c… East C… Pirates
#> 5 401516462 2023 2 2023-03-08 21 s:40~l… san-di… San Di… Aztecs
#> 6 401516462 2023 2 2023-03-08 2439 s:40~l… unlv-l… UNLV Lady R…
#> 7 401516415 2023 2 2023-03-08 2116 s:40~l… ucf-kn… UCF Knights
#> 8 401516415 2023 2 2023-03-08 235 s:40~l… memphi… Memphis Tigers
#> 9 401513503 2023 2 2023-03-07 27 s:40~l… uc-riv… UC Riv… Highla…
#> 10 401513503 2023 2 2023-03-07 13 s:40~l… cal-po… Cal Po… Mustan…
#> # … with 11,120 more rows, 43 more variables: 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>, field_goal_pct <dbl>, field_goals_made <int>,
#> # field_goals_attempted <int>, flagrant_fouls <int>, fouls <int>,
#> # free_throw_pct <dbl>, free_throws_made <int>, …
# }