Learn R Programming

hockeyR (version 1.3.0)

scrape_season: Scrape full season play-by-play

Description

Scrape full season play-by-play

Usage

scrape_season(season, type = "all")

Value

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

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"

Examples

Run this code
if (FALSE) {
# scrape all regular season & postseason games for the 2016-2017 season
pbp_2016_2017 <- scrape_season(2017, type = "REG")
}

Run the code above in your browser using DataLab