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.5.0 ──
#> # A tibble: 6,008 × 64
#> id uid date attendance timeValid neutralSite conferenceCompe… recent
#> <chr> <chr> <chr> <dbl> <lgl> <lgl> <lgl> <lgl>
#> 1 4013693… s:40… 2021… 5533 TRUE FALSE FALSE FALSE
#> 2 4013806… s:40… 2021… 4613 TRUE FALSE FALSE FALSE
#> 3 4013769… s:40… 2021… 4180 TRUE FALSE FALSE FALSE
#> 4 4013740… s:40… 2021… 6789 TRUE FALSE FALSE FALSE
#> 5 4013745… s:40… 2021… 7436 TRUE FALSE FALSE FALSE
#> 6 4013759… s:40… 2021… 1948 TRUE FALSE FALSE FALSE
#> 7 4013754… s:40… 2021… 9169 TRUE FALSE FALSE FALSE
#> 8 4013758… s:40… 2021… 3321 TRUE FALSE FALSE FALSE
#> 9 4013693… s:40… 2021… 1819 TRUE FALSE FALSE FALSE
#> 10 4013693… s:40… 2021… 0 TRUE FALSE FALSE FALSE
#> # … with 5,998 more rows, and 56 more variables: notes <chr>, startDate <chr>,
#> # type.id <chr>, type.abbreviation <chr>, venue.id <chr>,
#> # venue.fullName <chr>, venue.address.city <chr>, venue.address.state <chr>,
#> # venue.capacity <dbl>, venue.indoor <lgl>, status.clock <dbl>,
#> # status.displayClock <chr>, status.period <dbl>, status.type.id <chr>,
#> # status.type.name <chr>, status.type.state <chr>,
#> # status.type.completed <lgl>, status.type.description <chr>, …
# }