load_nhl_team_box {fastRhockey} | R Documentation |
Load fastRhockey NHL team 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_nhl_team_box(
seasons = most_recent_nhl_season(),
...,
dbConnection = NULL,
tablename = NULL
)
Arguments
seasons |
A vector of 4-digit years associated with given NHL seasons. (Min: 2011) |
... |
Additional arguments passed to an underlying function that writes
the season data into a database (used by |
dbConnection |
A |
tablename |
The name of the team box data table within the database |
Value
Returns a tibble
Examples
try(load_nhl_team_box(2021))
[Package fastRhockey version 0.4.0 Index]