scrape_pbp: Scrape NHL RTSS (play-by-play) data from nhl.com

Description Usage Arguments Details Author(s)

View source: R/pbp_scrape.r

Description

Scrape NHL RTSS (play-by-play) data from nhl.com

Usage

1
2
3
4
5
6
7
scrape_pbp(
  games,
  scrape_type = "full",
  live_scrape = FALSE,
  verbose = TRUE,
  sleep = 0
)

Arguments

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

Details

event_summary values

resulting data sets returned

Author(s)

Evolving Hockey (https://evolving-hockey.com/)


EFastner/icescrapR documentation built on Jan. 15, 2022, 1:11 p.m.