build_boxscore_tables: Build player_info table

Description Usage Arguments

View source: R/build-boxscore-tables.R

Description

The internals here are hard-coded, as this is not meant to be something used outside of the current process, at the moment. In the future, perhaps something config-based could be created This is meant to create the table brand new, not update it. If the table already exists, it will be re-written by running this function.

Usage

1
2
3
4
5
6
build_boxscore_tables(
  gameIDs,
  conn = connect_to_db(),
  return_vals = FALSE,
  num_cores = 1
)

Arguments

gameIDs

a vector of gameIDs to process and add to the database

conn

A connection to a database - defaults to creating a new one

return_vals

Logical. If true, the tables are returned

num_cores

Number of cores to use - defaults to 1.


anthonyshook/nhldata documentation built on Feb. 22, 2021, 3:51 a.m.