nhl_drafts: Retrieve metadata on NHL drafts from the API

Description Usage Arguments Value Examples

View source: R/nhl_drafts.R

Description

Retrieve metadata on NHL drafts from the API

Usage

1
nhl_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

data.frame, with information on drafts, one row per draft year.

Examples

1
2
3
4
5
6
7
8
## Not run: 
  # Get information on current draft
  nhl_drafts()

  # Get information on 3 historical drafts
  nhl_drafts(2015:2017)

## End(Not run)

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