View source: R/get_team_records.R
get_team_records | R Documentation |
Get team records from hockey-reference.com
get_team_records(
season = as.numeric(format(Sys.Date() + 184, "%Y")),
league = "NHL",
include_records = TRUE
)
season |
An integer value denoting the end year of the season(s) to scrape |
league |
The league stats to scrape, either 'NHL' or 'WHA' or get both with c('NHL','WHA') |
include_records |
Option to exclude records from the function, used to gather full team names & abbreviations for every season since 1918 |
A tibble containing full team names & win-loss records for teams in all desired seasons
## Not run:
get_team_records(2021)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.