Description Usage Arguments Value Examples
The API has separate tables for Franchises and Teams. This allowed for teams that moved locations to have the same franchise, or locations with multiple teams to have different franchise histories (Winnipeg). This call returns franchises, which has a corresponding id to teams (see output$data$mostRecentTeamID
).
1 | getFranchiseList(teamName = NULL, teamPlace = NULL)
|
teamName |
Optional, filter by team name (e.g. "Golden Knights") |
teamPlace |
Optional, filter by team place |
a list of all franchises in the NHL.
1 2 3 4 5 | franchises <- getFranchiseList()
#or, get specific franchise info:
franchise <- getFranchiseList(teamName = "Golden Knights")
franchise <- getFranchiseList(teamPlace = "Vegas")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.