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_schedule(
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
DBIConnection
object, as returned byDBI::dbConnect()
- tablename
The name of the schedule data table within the database
Examples
# \donttest{
try(load_wnba_schedule())
#> ──────────────────────────────────────────────────────────────── wehoop 1.8.0 ──
#> # A tibble: 241 × 65
#> id uid date atten…¹ time_…² neutr…³ confe…⁴ recent start…⁵ notes…⁶
#> <int> <chr> <chr> <int> <lgl> <lgl> <lgl> <lgl> <chr> <chr>
#> 1 401455684 s:40~… 2022… 9652 TRUE FALSE FALSE FALSE 2022-0… event
#> 2 401455683 s:40~… 2022… 8745 TRUE FALSE FALSE FALSE 2022-0… event
#> 3 401455682 s:40~… 2022… 10211 TRUE FALSE FALSE FALSE 2022-0… event
#> 4 401455681 s:40~… 2022… 10135 TRUE FALSE FALSE FALSE 2022-0… event
#> 5 401455679 s:40~… 2022… 8014 TRUE FALSE FALSE FALSE 2022-0… event
#> 6 401455678 s:40~… 2022… 11328 TRUE FALSE FALSE FALSE 2022-0… event
#> 7 401455677 s:40~… 2022… 5868 TRUE FALSE FALSE FALSE 2022-0… event
#> 8 401455676 s:40~… 2022… 15431 TRUE FALSE FALSE FALSE 2022-0… event
#> 9 401455675 s:40~… 2022… 9142 TRUE FALSE FALSE FALSE 2022-0… event
#> 10 401455674 s:40~… 2022… 9755 TRUE FALSE FALSE FALSE 2022-0… event
#> # … with 231 more rows, 55 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>, status_type_detail <chr>, …
# }