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_team_box(
  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: 2006)

...

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_team_box())
#> ──────────────────────────────────────────────────────────────── wehoop 1.5.0 ──
#> # A tibble: 11,018 × 41
#>    team_short_display_name team_uid team_alternate_… team_color team_display_na…
#>    <chr>                   <chr>    <chr>            <chr>      <chr>           
#>  1 LSU                     s:40~l:… 2b0d57           fdd023     LSU Tigers      
#>  2 Georgia                 s:40~l:… 000000           CC0000     Georgia Lady Bu…
#>  3 South Carolina          s:40~l:… 000000           670010     South Carolina …
#>  4 Missouri                s:40~l:… 000000           000000     Missouri Tigers 
#>  5 Alabama                 s:40~l:… f1f2f3           690014     Alabama Crimson…
#>  6 Tennessee               s:40~l:… ffffff           EE9627     Tennessee Lady …
#>  7 Auburn                  s:40~l:… f1f2f3           03244d     Auburn Tigers   
#>  8 Alabama                 s:40~l:… f1f2f3           690014     Alabama Crimson…
#>  9 Tennessee               s:40~l:… ffffff           EE9627     Tennessee Lady …
#> 10 Arkansas                s:40~l:… 000000           9c1831     Arkansas Razorb…
#> # … with 11,008 more rows, and 36 more variables: team_name <chr>,
#> #   team_logo <chr>, team_location <chr>, team_id <chr>,
#> #   team_abbreviation <chr>, team_slug <chr>,
#> #   field_goals_made_field_goals_attempted <chr>, field_goal_pct <chr>,
#> #   three_point_field_goals_made_three_point_field_goals_attempted <chr>,
#> #   three_point_field_goal_pct <chr>,
#> #   free_throws_made_free_throws_attempted <chr>, free_throw_pct <chr>, …
# }