hockey_teams: Retrieve the available hockey teams

Description Usage Arguments Value Examples

Description

A function to retrieve all of the available hockey teams for a specified league.

Usage

1
hockey_teams(league = "nhl", verbose = TRUE)

Arguments

league

character. The hockey league to retrieve. Currently only the NHL is supported, and is the default.

verbose

logical. TRUE will print messages to the console. Default is TRUE.

Value

a dataframe of the hockey teams for the specified league.

Examples

1
2
3
4
5
## Not run: 
set_token("insert-your-token-here")
results <- hockey_teams(league="nhl")

## End(Not run)

stattleship/stattleship-r documentation built on May 30, 2019, 10:43 a.m.