get_drafts: Gets draft information, players' names, and player URLs for...

Description Usage Arguments Examples

View source: R/get_drafts.R

Description

Returns a data frame of draft information, players' names, and player URLs for user supplied drafts (NHL Entry Draft, CHL Import Draft, etc.) & seasons.

Usage

1
get_drafts(draft_type, draft_year, progress = TRUE, other = "", ...)

Arguments

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 2018, 1996, etc – only a single 4-digit number.

progress

Sets a Progress Bar. Defaults to TRUE.

...

Allows the user to supply other information to the function. If you don't know what this means, then don't worry about it.

Examples

1
2
3
get_drafts("chl import draft", 2018)

get_drafts(c("nhl entry draft", "khl draft"), c(1994, 2017:2018))

eoppe1022/elite documentation built on Nov. 15, 2019, 6:47 a.m.