Description Usage Arguments Value Examples
A function to retrieve all of the players for a given team, in a given league
1 | hockey_players(league = "nhl", team_id = "nhl-bos", verbose = TRUE)
|
league |
character. The hockey league to retrieve. Currently only the NHL is supported, and is the default. |
team_id |
character. The team id, can be in the form of the slug "nhl-bos". Default is the Boston Bruins, nhl-bos. |
verbose |
logical. TRUE will print messages to the console. Default is TRUE. |
a dataframe of the hockey teams for the specified league.
1 2 3 4 5 | ## Not run:
set_token("insert-your-token-here")
results <- hockey_players(league="nhl", team_id="nhl-bos")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.