Skip to contents

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 by DBI::dbConnect()

tablename

The name of the play by play data table within the database

Value

Returns a tibble

Examples

# \donttest{
  try(load_wbb_schedule())
#> ──────────────────────────────────────────────────────────────── wehoop 1.7.0 ──
#> # A tibble: 5,418 × 71
#>           id uid    date  atten…¹ time_…² neutr…³ confe…⁴ recent start…⁵ notes…⁶
#>        <int> <chr>  <chr>   <int> <lgl>   <lgl>   <lgl>   <lgl>  <chr>   <chr>  
#>  1 401474159 s:40~… 2023…       0 TRUE    FALSE   TRUE    FALSE  2023-0… ""     
#>  2 401474158 s:40~… 2023…       0 TRUE    FALSE   TRUE    FALSE  2023-0… ""     
#>  3 401488747 s:40~… 2023…       0 TRUE    FALSE   TRUE    FALSE  2023-0… ""     
#>  4 401492075 s:40~… 2023…       0 TRUE    FALSE   TRUE    FALSE  2023-0… ""     
#>  5 401494219 s:40~… 2023…       0 TRUE    FALSE   TRUE    FALSE  2023-0… ""     
#>  6 401494217 s:40~… 2023…       0 TRUE    FALSE   TRUE    FALSE  2023-0… ""     
#>  7 401493770 s:40~… 2023…       0 TRUE    FALSE   TRUE    FALSE  2023-0… ""     
#>  8 401474161 s:40~… 2023…       0 TRUE    FALSE   TRUE    FALSE  2023-0… ""     
#>  9 401474160 s:40~… 2023…       0 TRUE    FALSE   TRUE    FALSE  2023-0… ""     
#> 10 401474157 s:40~… 2023…       0 TRUE    FALSE   TRUE    FALSE  2023-0… ""     
#> # … with 5,408 more rows, 61 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>, …
# }