Load cleaned NCAA men's college baseball season IDs from the baseballr data repo
Source:R/load_ncaa_baseball_season_ids.R
load_ncaa_baseball_season_ids.Rd
helper that loads multiple seasons of season IDs from the data repo either into memory or writes it into a db using some forwarded arguments in the dots
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
Examples
# \donttest{
try(load_ncaa_baseball_season_ids())
#> ── NCAA Baseball Season IDs from baseballr data repository ─────────────
#> ℹ Data updated: 2024-01-09 04:33:47 UTC
#> # A tibble: 13 × 4
#> season id batting_id pitching_id
#> <dbl> <dbl> <dbl> <dbl>
#> 1 2012 10942 10082 10083
#> 2 2013 11320 10120 10121
#> 3 2014 11620 10460 10461
#> 4 2015 12080 10780 10781
#> 5 2016 12360 10946 10947
#> 6 2017 12560 11000 11001
#> 7 2018 12973 11953 11954
#> 8 2019 14781 14643 14644
#> 9 2020 15204 14760 14761
#> 10 2021 15580 14840 14841
#> 11 2022 15860 14940 14941
#> 12 2023 16340 15000 15001
#> 13 2024 16580 15080 15081
# }