nhl_url_teams: Create an NHL API URL for teams

Description Usage Arguments Value Examples

View source: R/nhl_teams.R

Description

Create an NHL API URL for teams

Usage

1
nhl_url_teams(teamIds = NULL, params = NULL)

Arguments

teamIds

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.

params

named list() of parameters that will be concatenated to the end of the URLs after ?. Parameters can have multiple values, in which case multiple URLs are created. Multiple parameters are separated by &.

Value

character(), API URLs, same length as teamIds or length 1 if teamIds is NULL.

Examples

1
2
  nhlapi:::nhl_url_teams()
  nhlapi:::nhl_url_teams(1:3)

nhlapi documentation built on Feb. 20, 2021, 9:06 a.m.