nhl_url_drafts: Create an NHL API URL for drafts

Description Usage Arguments Value Examples

View source: R/nhl_drafts.R

Description

Create an NHL API URL for drafts

Usage

1
nhl_url_drafts(draftYears = NULL)

Arguments

draftYears

integer(), vector of one or more years in YYYY format or NULL (default) for the current year's draft. Also accepts a character vector of years in YYYY format.

Value

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

Examples

1
2
  nhlapi:::nhl_url_drafts()
  nhlapi:::nhl_url_drafts(2015:2017)

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