Description Usage Arguments Examples
Returns a data frame of draft information, players' names, and player URLs for user supplied drafts (NHL Entry Draft, CHL Import Draft, etc.) & seasons.
1 | get_drafts(draft_type, draft_year, progress = TRUE, other = "", ...)
|
draft_type |
The type of draft for which the user wants to scrape data. Draft types must be typed exactly as they are found on EliteProspects (though case doesn't matter). Draft types include – but are not limited to – NHL Entry Draft, NHL Expansion Draft, KHL Draft, NWHL Draft, CWHL Draft, CHL Import Draft, and OHL U18 Priority Selection. Others may be found at the bottom of the page at https://www.eliteprospects.com/draft/nhl-entry-draft. |
draft_year |
Seasons for which the user wants to scrape data. Must be of the form |
progress |
Sets a Progress Bar. Defaults to |
... |
Allows the user to supply other information to the function. If you don't know what this means, then don't worry about it. |
1 2 3 | get_drafts("chl import draft", 2018)
get_drafts(c("nhl entry draft", "khl draft"), c(1994, 2017:2018))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.