Description Usage Arguments Details Value Examples
Query the result of draft by year summary report endpoint on the NHL.com API.
1 | draft_pick(pick_number = 1, round_number = NULL, year = NULL)
|
pick_number |
int in range [1,38] |
round_number |
int in in range [1,25] |
year |
str containing a year from 1963 to 2019 |
Depending on information provided in the parameters function will return summary on a person picked in specified draft round, pick and year. If year is not specified then all of the draft picks for that year will be returned. If no round is specified the dataframe will include all of the players with chosen pick number from every round.
There are cases when even though user entered valid parameters, output would be empty if a pick number didn't exist in a specified round, warning would be raised.
data.frame
1 | draft_pick(pick_number = 1, round_number = 2, year = '2019')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.