load_mls_player_box: *Load usfootballR MLS player box scores*

View source: R/mls_pbp.R

load_mls_player_boxR Documentation

Load usfootballR MLS player box scores

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

Arguments

seasons

A vector of 4-digit years associated with given MLS seasons. (Min: 2002)

...

Additional arguments passed to an underlying function that writes the season data into a database (used by update_mls_db()).

dbConnection

A DBIConnection object, as returned by DBI::dbConnect()

tablename

The name of the player box data table within the database

Value

Returns a tibble

Examples


  try(load_mls_player_box(2021))


saiemgilani/usfootballR documentation built on July 1, 2022, 9:45 a.m.