load_ncaa_baseball_pbp: *Load cleaned NCAA baseball play-by-play data from the...

View source: R/load_ncaa_baseball_pbp.R

load_ncaa_baseball_pbpR Documentation

Load cleaned NCAA baseball play-by-play data from the baseballr data repo

Description

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_ncaa_baseball_pbp(
  seasons = most_recent_ncaa_baseball_season(),
  ...,
  dbConnection = NULL,
  tablename = NULL
)

Arguments

seasons

A vector of 4-digit years associated with given NCAA college baseball seasons. (Min: 2022)

...

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 schedule data table within the database

Value

Returns a tibble

Examples


  load_ncaa_baseball_pbp(seasons = 2021)


baseballr documentation built on April 1, 2023, 12:12 a.m.