Load wehoop women's college basketball player box scores
Source:R/load_wbb.R
load_wbb_player_box.Rd
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 2.1.0 ──
#> # A tibble: 167,412 × 55
#> game_id season season_type game_date game_date_time athlete_id
#> <int> <int> <int> <date> <dttm> <int>
#> 1 401637613 2024 3 2024-04-07 2024-04-07 15:00:00 4682968
#> 2 401637613 2024 3 2024-04-07 2024-04-07 15:00:00 4898389
#> 3 401637613 2024 3 2024-04-07 2024-04-07 15:00:00 4433403
#> 4 401637613 2024 3 2024-04-07 2024-04-07 15:00:00 4433113
#> 5 401637613 2024 3 2024-04-07 2024-04-07 15:00:00 4398907
#> 6 401637613 2024 3 2024-04-07 2024-04-07 15:00:00 4585713
#> 7 401637613 2024 3 2024-04-07 2024-04-07 15:00:00 4433538
#> 8 401637613 2024 3 2024-04-07 2024-04-07 15:00:00 4597245
#> 9 401637613 2024 3 2024-04-07 2024-04-07 15:00:00 4858677
#> 10 401637613 2024 3 2024-04-07 2024-04-07 15:00:00 4595290
#> # ℹ 167,402 more rows
#> # ℹ 49 more variables: athlete_display_name <chr>, team_id <int>,
#> # team_name <chr>, team_location <chr>, team_short_display_name <chr>,
#> # 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>, …
# }