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_schedule(
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: 2002)
- ...
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_schedule())
#> ──────────────────────────────────────────────────────────────── wehoop 1.8.0 ──
#> # A tibble: 5,881 × 72
#> id uid date atten…¹ time_…² neutr…³ confe…⁴ recent start…⁵ notes…⁶
#> <int> <chr> <chr> <int> <lgl> <lgl> <lgl> <lgl> <chr> <chr>
#> 1 401528028 s:40~… 2023… 0 FALSE TRUE FALSE FALSE 2023-0… event
#> 2 401526978 s:40~… 2023… 0 TRUE TRUE FALSE FALSE 2023-0… event
#> 3 401528026 s:40~… 2023… 0 TRUE TRUE FALSE FALSE 2023-0… event
#> 4 401528027 s:40~… 2023… 0 TRUE TRUE FALSE FALSE 2023-0… event
#> 5 401526977 s:40~… 2023… 0 FALSE TRUE FALSE FALSE 2023-0… event
#> 6 401526976 s:40~… 2023… 0 FALSE TRUE FALSE FALSE 2023-0… event
#> 7 401528025 s:40~… 2023… 0 FALSE TRUE FALSE FALSE 2023-0… event
#> 8 401528024 s:40~… 2023… 0 FALSE TRUE FALSE FALSE 2023-0… event
#> 9 401526975 s:40~… 2023… 0 FALSE TRUE FALSE FALSE 2023-0… event
#> 10 401526974 s:40~… 2023… 0 FALSE TRUE FALSE FALSE 2023-0… event
#> # … with 5,871 more rows, 62 more variables: notes_headline <chr>,
#> # type_id <int>, type_abbreviation <chr>, venue_id <int>,
#> # venue_full_name <chr>, venue_address_city <chr>, venue_address_state <chr>,
#> # venue_capacity <int>, venue_indoor <lgl>, status_clock <int>,
#> # status_display_clock <chr>, status_period <int>, status_type_id <int>,
#> # status_type_name <chr>, status_type_state <chr>,
#> # status_type_completed <lgl>, status_type_description <chr>, …
# }