powered by
Retrieves team metadata such as the teams names, abbreviations, locations, conferences, venues, etc.
nhl_teams(teamIds = NULL, params = NULL)
integer(), ids of the teams or NULL (default) for all teams. As of end of 2019, the valid team ids seem to be in the 1:54 range.
integer()
NULL
1:54
named list(), further parameters passed to nhl_url_teams.
named list()
nhl_url_teams
data.frame, with data on teams, one row per team.
data.frame
The API allows to retrieve data on all teams at once, which is achieved by the default NULL value for the team id.
# NOT RUN { nhl_teams() nhl_teams(1:3) # } # NOT RUN { # }
Run the code above in your browser using DataLab