readHockeyData: Read in Hockey Data csv files.

Description Usage Arguments Value

View source: R/scrapeScores.R

Description

Read in Hockey Data csv files.

Usage

1
2
3
4
readHockeyData(data_dir = "./data/scores/",
  nhl_year_list = c(1918:getCurrentSeason()),
  wha_year_list = c(1973:1979), playoffs = TRUE,
  lastPlayoffs = FALSE, ...)

Arguments

data_dir

The location of the files

nhl_year_list

The NHL years to read in

wha_year_list

The WHA years to read in

playoffs

Whether to read in playoffs (Boolean, default = TRUE)

lastPlayoffs

Whether to read the last listed playoffs. Default = FALSE

...

Further parameters to pass to cleanHockeyData

Value

returns a un-cleaned data frame from NHL and WHA score csv files


pbulsink/HockeyScrapR documentation built on Sept. 9, 2020, 9:21 a.m.