| draft_rankings | R Documentation |
draft_rankings() scrapes the draft rankings for a given set of class
and category.
draft_rankings(class = season_now()%%10000, category = 1)
class |
integer in YYYY (e.g., 2017); see |
category |
integer in 1:4 (where 1 = North American Skaters, 2 = International Skaters, 3 = North American Goalies, and 4 = International Goalies) OR character of 'NAS'/'NA Skaters'/'North American Skaters', 'INTLS'/'INTL Skaters'/'International Skaters', 'NAG'/'NA Goalies'/'North American Goalies', 'INTLG'/'INTL Goalies'/'International Goalies' |
data.frame with one row per player
draft_rankings_INTL_Skaters_2017 <- draft_rankings(
class = 2017,
category = 2
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.