Skip to contents

helper that loads multiple seasons of teams from the data repo either into memory or writes it into a db using some forwarded arguments in the dots

Usage

load_ncaa_baseball_teams(..., dbConnection = NULL, tablename = NULL)

Arguments

...

Additional arguments passed to an underlying function that writes the season data into a database.

dbConnection

A DBIConnection object, as returned by

tablename

The name of the data table within the database

Value

Returns a tibble

Examples

# \donttest{
  try(load_ncaa_baseball_teams())
#> ── NCAA Baseball Teams Information from baseballr data repository ──────
#>  Data updated: 2024-01-09 04:44:08 UTC
#> # A tibble: 14,042 × 8
#>    team_id team_name    team_url conference_id conference division  year
#>      <dbl> <chr>        <chr>            <dbl> <chr>         <dbl> <dbl>
#>  1   26172 A&M-Corpus … /team/2…           914 Southland         1  2024
#>  2   26172 A&M-Corpus … /team/2…           914 Southland         1  2023
#>  3   26172 A&M-Corpus … /team/2…           914 Southland         1  2022
#>  4   26172 A&M-Corpus … /team/2…           914 Southland         1  2021
#>  5   26172 A&M-Corpus … /team/2…           914 Southland         1  2020
#>  6   26172 A&M-Corpus … /team/2…           914 Southland         1  2019
#>  7   26172 A&M-Corpus … /team/2…           914 Southland         1  2018
#>  8   26172 A&M-Corpus … /team/2…           914 Southland         1  2017
#>  9   26172 A&M-Corpus … /team/2…           914 Southland         1  2016
#> 10   26172 A&M-Corpus … /team/2…           914 Southland         1  2015
#> # ℹ 14,032 more rows
#> # ℹ 1 more variable: season_id <dbl>
# }