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.8.0 ──
#> # A tibble: 112,708 × 38
#> game_id season season_…¹ game_date athle…² athle…³ team_id team_…⁴ team_…⁵
#> <int> <int> <int> <date> <chr> <chr> <chr> <chr> <chr>
#> 1 401516463 2023 2 2023-03-08 4595630 Kendyl… 36 Rams Colora…
#> 2 401516463 2023 2 2023-03-08 4399658 Sydney… 36 Rams Colora…
#> 3 401516463 2023 2 2023-03-08 4704574 Destin… 36 Rams Colora…
#> 4 401516463 2023 2 2023-03-08 4595160 McKenn… 36 Rams Colora…
#> 5 401516463 2023 2 2023-03-08 4433341 Cailyn… 36 Rams Colora…
#> 6 401516463 2023 2 2023-03-08 4704464 Cali C… 36 Rams Colora…
#> 7 401516463 2023 2 2023-03-08 5109390 Hannah… 36 Rams Colora…
#> 8 401516463 2023 2 2023-03-08 4704463 Petra … 36 Rams Colora…
#> 9 401516463 2023 2 2023-03-08 4595914 Meghan… 36 Rams Colora…
#> 10 401516463 2023 2 2023-03-08 4704657 Grace … 2751 Cowgir… Wyoming
#> # … with 112,698 more rows, 29 more variables: minutes <dbl>,
#> # field_goals_made <int>, field_goals_attempted <int>,
#> # three_point_field_goals_made <int>,
#> # three_point_field_goals_attempted <int>, free_throws_made <int>,
#> # free_throws_attempted <int>, offensive_rebounds <int>,
#> # defensive_rebounds <int>, rebounds <int>, assists <int>, steals <int>,
#> # blocks <int>, turnovers <int>, fouls <int>, points <int>, starter <lgl>, …
# }