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_mbb_schedule(
seasons = most_recent_mbb_season(),
...,
dbConnection = NULL,
tablename = NULL
)
Arguments
- seasons
A vector of 4-digit years associated with given men's college basketball seasons. (Min: 2002)
- ...
Additional arguments passed to an underlying function that writes the season data into a database (used by
update_mbb_db()
).- dbConnection
A
DBIConnection
object, as returned by- tablename
The name of the play by play data table within the database
Examples
# \donttest{
load_mbb_schedule(2021)
#> ── MBB Schedule Information from hoopR data repository ────────── hoopR 1.8.0 ──
#> ℹ Data updated: 2022-03-27 22:08:36 UTC
#> # A tibble: 5,282 × 72
#> id uid date attendance timeValid neutralSite conferenceCompe… recent
#> <int> <chr> <chr> <int> <lgl> <lgl> <lgl> <lgl>
#> 1 4.01e8 s:40… 2021… 0 TRUE TRUE FALSE FALSE
#> 2 4.01e8 s:40… 2021… 8131 TRUE TRUE FALSE FALSE
#> 3 4.01e8 s:40… 2021… 0 TRUE TRUE FALSE FALSE
#> 4 4.01e8 s:40… 2021… 7515 TRUE TRUE FALSE FALSE
#> 5 4.01e8 s:40… 2021… 6166 TRUE TRUE FALSE FALSE
#> 6 4.01e8 s:40… 2021… 7519 TRUE TRUE FALSE FALSE
#> 7 4.01e8 s:40… 2021… 0 TRUE TRUE FALSE FALSE
#> 8 4.01e8 s:40… 2021… 0 TRUE TRUE FALSE FALSE
#> 9 4.01e8 s:40… 2021… 0 TRUE TRUE FALSE FALSE
#> 10 4.01e8 s:40… 2021… 3645 TRUE TRUE FALSE FALSE
#> # … with 5,272 more rows, and 64 more variables: startDate <chr>,
#> # notes_type <chr>, notes_headline <chr>, type.id <int>,
#> # type.abbreviation <chr>, venue.id <int>, venue.fullName <chr>,
#> # venue.address.city <chr>, venue.address.state <chr>, venue.capacity <int>,
#> # venue.indoor <lgl>, status.clock <dbl>, status.displayClock <chr>,
#> # status.period <int>, status.type.id <int>, status.type.name <chr>,
#> # status.type.state <chr>, status.type.completed <lgl>, …
# }