nflscrapR (version 1.4.0)

extracting_gameids: Extract GameIDs for each game in a given NFL season

Description

This function is a helper for the Proper.PBP.URL.Formatting function. The outputs of extracting_gameids is used in conjunction with Proper.PBP.URL.Formatting to create the URLs for each NFL game in a specified season

Usage

extracting_gameids(Season, playoffs = FALSE)

Arguments

Season

(numeric) A numeric 4-digit year associated with an NFL season

playoffs

(boolean) TRUE if you want the playoffs gameIDs for the specified season. FALSE (default) if you want the game IDs from the regular season

Value

A vector of NFL GameIDs from the specified season

Examples

Run this code
# NOT RUN {
# Scraping all game IDs from 2010 Season
extracting_gameids(2010) 
# }

Run the code above in your browser using DataLab