gameday

A package that allows the user to extract data on NHL teams without using the browser. The RStudio interface is simple and intuitive to use.

Installation

Install gameday from GitHub:

devtools::install_github("dchiu911/gameday")

Note that you need the devtools package to do this.

Usage

At the current version, gameday has two functions: gday() and scores(). We'll discuss each in turn.

Given a team and a date, we can call gday(team, date) to see whether that team plays on that date.

library(gameday)

gday("devils", "2014-11-03")

What if we wanted to find all the final scores on a particular date? Then we can call scores(date) to return a data.frame with this information.

scores("2014-11-15")

Vignette

Further details can be found in the vignette for this package. To view it, run this command in the R console:

browseVignettes("gameday")

Once there, you can click on the HTML link to get a nice introduction to gameday. The help files can be accessed with ?gday and ?scores for details on function arguments and some examples.

Alternatively, there is a markdown version available in this repository, found here.



dchiu911/gameday documentation built on May 15, 2019, 1:48 a.m.