nhl_url_players_stats: Create an NHL API stats URL for players

Description Usage Arguments Value Examples

View source: R/nhl_players_seasons.R

Description

Create an NHL API stats URL for players

Usage

1
nhl_url_players_stats(playerIds, params = NULL)

Arguments

playerIds

integer(), vector of one or more ids of the players. The ids correspond to the ids expected by the NHL API people endpoint. For most cases the playerNames argument can be provided for more convenient usage.

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(), of API URLs, same length as playerIds.

Examples

1
  nhlapi:::nhl_url_players_stats(8477474)

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