load_nhl_player_box: *Load powerplay NHL player box scores*

Description Usage Arguments Value Examples

View source: R/nhl_pbp.R

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

1
2
3
4
5
6
load_nhl_player_box(
  seasons = most_recent_nhl_season(),
  ...,
  dbConnection = NULL,
  tablename = NULL
)

Arguments

seasons

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

...

Additional arguments passed to an underlying function that writes the season data into a database (used by update_nhl_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

1

saiemgilani/powerplay documentation built on Dec. 22, 2021, 9:19 p.m.