Description Usage Arguments Details Author(s)
Scrape NHL RTSS (play-by-play) data from nhl.com
1 2 3 4 5 6 7 | scrape_pbp(
games,
scrape_type = "full",
live_scrape = FALSE,
verbose = TRUE,
sleep = 0
)
|
games |
a vector containing a list of game_ids to scrape |
scrape_type |
default is "full", determines what data to return. See details for more info |
live_scrape |
default is FALSE, adjusts incorrect player and goalie shifts if TRUE (used for scraping games in progress) |
verbose |
default is TRUE, prints system time of each scrape |
sleep |
default is 0, time (in seconds) to wait between scraping games |
event_summary values
full - returns all data
event_summary - returns only event summary, rosters, and scratches
rosters - returns only rosters and scratches
resulting data sets returned
game_info_dir - game information data
pbp_base - main play-by-play data
pbp_extras - extra play-by-play data
player_shifts - full player shifts data
player_periods - player TOI sums per period (from the shifts source)
roster_df - roster data
scratches_df - scratches data
events_summary_df - event summary data (box score stats, etc.)
report - report showing number of rows and time to scrape game
Evolving Hockey (https://evolving-hockey.com/)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.