gday: Is it Gameday?

Description Usage Arguments Details Value Note Examples

Description

This function returns TRUE if your NHL team plays on the specified date and FALSE otherwise

Usage

1
gday(team = "canucks", date = Sys.Date())

Arguments

team

The name of your team. Defaults to Canucks.

date

The specified date to check. Defaults to today's date.

Details

You know the problem: You're in your office writing R code and suddenly have the urge to check whether your NHL team has a game today. Before you know it you just wasted 15 minutes browsing the lastest news on your favorite hockey webpage. Suffer no more! You can now ask R directly, without tempting yourself by firing up your web browser.

Value

Logical TRUE if team has a NHL game today, FALSE otherwise

Note

case in team is ignored

Examples

1
2
3
gday()
gday("canucks")
gday("Rangers")

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