tidy_drafts | R Documentation |
The function tidy_drafts()
is meant to be a user-friendly way of getting data about the NHL
entry drafts.
tidy_drafts(
drafts_year = NULL,
keep_id = FALSE,
return_datatable = getOption("tidynhl.data.table", TRUE)
)
drafts_year |
(optional) Integer vector indicating which entry drafts will be returned.
The first NHL entry draft was held in 1963. Default to |
keep_id |
(optional) Logical indicating if the IDs of different dimensions should be
returned. Default to |
return_datatable |
(optional) Logical indicating whether or not a data.table should be
returned. Default can be set globally with |
# Allowing large outputs for the pkgdown website
options(width = 1000L)
# Get every drafts in NHL history
tidy_drafts()
# Get both the 2019 and 2020 NHL entry drafts, keeping the IDs
tidy_drafts(drafts_year = 2019:2020, keep_id = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.