scrape_season: Scrape full season play-by-play

View source: R/scrape_season.R

scrape_seasonR Documentation

Scrape full season play-by-play

Description

Scrape full season play-by-play

Usage

scrape_season(season, type = "all")

Arguments

season

An integer value denoting the end year of the season to scrape

type

A character vector of the game types to include: REG, POST, or "all"

Value

A tibble containing all play-by-play data for a given season in the same format as the output of scrape_game

Examples

## Not run: 
# scrape all regular season & postseason games for the 2016-2017 season
pbp_2016_2017 <- scrape_season(2017, type = "REG")

## End(Not run)

hockeyR documentation built on Oct. 12, 2022, 5:07 p.m.