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_player_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 byDBI::dbConnect()
- tablename
The name of the play by play data table within the database
Examples
# \donttest{
try(load_wbb_player_box())
#> ──────────────────────────────────────────────────────────────── wehoop 1.5.0 ──
#> # A tibble: 111,857 × 34
#> athlete_display_n… team_short_disp… min fg fg3 ft oreb dreb reb
#> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 Autumn Newby LSU 32 4-6 0-0 1-2 5 5 10
#> 2 Faustine Aifuwa LSU 37 8-11 0-0 1-2 2 7 9
#> 3 Alexis Morris LSU 40 3-8 0-2 2-2 0 4 4
#> 4 Jailin Cherry LSU 40 5-15 0-1 0-0 2 2 4
#> 5 Khayla Pointer LSU 40 7-20 4-8 3-7 0 2 2
#> 6 Awa Trasi LSU 1 0-0 0-0 0-0 0 0 0
#> 7 Hannah Gusters LSU 10 1-1 0-0 1-2 0 2 2
#> 8 Jordan Isaacs Georgia 9 1-3 0-0 0-0 3 1 4
#> 9 Malury Bates Georgia 27 1-6 0-0 1-2 1 6 7
#> 10 Sarah Ashlee Bark… Georgia 36 6-13 2-4 0-0 0 2 2
#> # … with 111,847 more rows, and 25 more variables: ast <chr>, stl <chr>,
#> # blk <chr>, to <chr>, pf <chr>, pts <chr>, starter <lgl>, ejected <lgl>,
#> # did_not_play <lgl>, active <lgl>, athlete_jersey <chr>, athlete_id <chr>,
#> # athlete_short_name <chr>, athlete_headshot_href <chr>,
#> # athlete_position_name <chr>, athlete_position_abbreviation <chr>,
#> # team_name <chr>, team_logo <chr>, team_id <chr>, team_abbreviation <chr>,
#> # team_color <chr>, game_id <int>, season <int>, season_type <int>, …
# }