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
load_mbb_team_box(
seasons = most_recent_mbb_season(),
...,
dbConnection = NULL,
tablename = NULL
)A vector of 4-digit years associated with given men's college basketball seasons. (Min: 2003)
Additional arguments passed to an underlying function that writes
the season data into a database (used by update_mbb_db()).
A DBIConnection object, as returned by
The name of the play by play data table within the database
Returns a tibble
# \donttest{
load_mbb_team_box(2021)
#> # A tibble: 8,414 × 41
#> team_short_display_name team_uid team_alternate_… team_color team_display_na…
#> <chr> <chr> <chr> <chr> <chr>
#> 1 Florida Int'l s:40~l:… c5960c 091731 Florida Interna…
#> 2 North Florida s:40~l:… babcbe 004B8D North Florida O…
#> 3 Iowa State s:40~l:… 830b2c 660015 Iowa State Cycl…
#> 4 Mississippi St s:40~l:… c8c8c8 762123 Mississippi Sta…
#> 5 West Virginia s:40~l:… eaaa00 FFC600 West Virginia M…
#> 6 Iowa State s:40~l:… 830b2c 660015 Iowa State Cycl…
#> 7 Iowa State s:40~l:… 830b2c 660015 Iowa State Cycl…
#> 8 Oklahoma s:40~l:… cccccc 7b0000 Oklahoma Sooners
#> 9 Kansas s:40~l:… e8000d 0022B4 Kansas Jayhawks
#> 10 Iowa State s:40~l:… 830b2c 660015 Iowa State Cycl…
#> # … with 8,404 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>, …
# }