load_pbp | R Documentation |
Load season play-by-play
load_pbp( season = as.numeric(substr(Sys.Date() + 184, 1, 4)), shift_events = FALSE )
season |
An integer value or vector of values denoting the end year of the season(s) to scrape.
|
shift_events |
Logical value; when set to |
A tibble containing all play-by-play data for a given season(s) in
the same format as the output of scrape_game
## Not run: pbp <- load_pbp(2021) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.