Fetch game IDs for a single day or a full season

get_game_ids(season = NULL, day = as.Date(Sys.Date(), "%Y-%m-%d"))

Arguments

season

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

day

A day in the format of 'YYYY-MM-DD'

Value

A tibble containing game IDs and basic info for specified time frame

game_id

Integer value of NHL game ID used in scrape_game

season_full

String defining NHL season

date

Date of game, as a string

game_time

Scheduled start time (US/Eastern) of game, as a string

home_name

Home team name, as a string

away_name

Away team name, as a string

home_final_score

Numeric final score for home team - will return 0 for games that haven't started

away_final_score

Numeric final score for away team - will return 0 for games that haven't started

game_type

String denoting type of game: "REG" or "POST"

Examples

if (FALSE) {
get_game_ids(season = 2020)
get_game_ids(day = "2015-03-12")
}