Get NFL Season Schedules
fast_scraper_schedules(seasons, pp = FALSE)
seasons | Vector of numeric or character 4 digit seasons |
---|---|
pp | Logical - either |
Data frame containing the following detailed game information:
Character identifier including season, week, away team and home team
4 digit season year.
One of 'REG', 'WC', 'DIV', 'CON', 'SB' indicating if a game was a regular season game or one of the playoff rounds.
Numeric week number.
Game date in format yyyy/mm/dd.
The day of the week on which the game occcured.
The kickoff time of the game. This is represented in 24-hour time and the Eastern time zone, regardless of what time zone the game was being played in.
Away team abbreviation.
Home team abbreviation.
The number of points the away team scored. Is 'NA' for games which haven't yet been played.
The number of points the home team scored. Is 'NA' for games which haven't yet been played.
Equals home_score - away_score and means the game outcome from the perspective of the home team.
Name of the stadium the game was or will be played in. (Source: Pro-Football-Reference)
Either 'Home' o 'Neutral' indicating if the home team played at home or at a neutral site.
One of 'dome', 'outdoors', 'closed', 'open' indicating indicating the roof status of the stadium the game was played in. (Source: Pro-Football-Reference)
What type of ground the game was played on. (Source: Pro-Football-Reference)
Unique game identifier of the old NFL API.
This functions now incorporates the games file provided and maintained by Lee Sharpe.
The pp
parameter controls if the scraper should use parallel processing.
Please note that the initiating process takes a few seconds which means it
may be better to set pp = FALSE
if you are scraping less than 10 seasons.
if (FALSE) { # Get schedules for the whole 2015 - 2018 seasons seasons <- 2015:2018 schedules <- fast_scraper_schedules(seasons) }