Learn R Programming

nflfastR (version 4.3.0)

fast_scraper_schedules: Get NFL Season Schedules

Description

Get NFL Season Schedules

Usage

fast_scraper_schedules(seasons)

Value

Data frame containing the following detailed game information:

game_id

Character identifier including season, week, away team and home team

season

4 digit season year.

game_type

One of 'REG', 'WC', 'DIV', 'CON', 'SB' indicating if a game was a regular season game or one of the playoff rounds.

week

Numeric week number.

gameday

Game date in format yyyy/mm/dd.

weekday

The day of the week on which the game occcured.

gametime

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

Away team abbreviation.

home_team

Home team abbreviation.

away_score

The number of points the away team scored. Is 'NA' for games which haven't yet been played.

home_score

The number of points the home team scored. Is 'NA' for games which haven't yet been played.

home_result

Equals home_score - away_score and means the game outcome from the perspective of the home team.

stadium

Name of the stadium the game was or will be played in. (Source: Pro-Football-Reference)

location

Either 'Home' o 'Neutral' indicating if the home team played at home or at a neutral site.

roof

One of 'dome', 'outdoors', 'closed', 'open' indicating indicating the roof status of the stadium the game was played in. (Source: Pro-Football-Reference)

surface

What type of ground the game was played on. (Source: Pro-Football-Reference)

old_game_id

Unique game identifier of the old NFL API.

Arguments

seasons

Vector of numeric or character 4 digit seasons

Details

This functions now incorporates the games file provided and maintained by Lee Sharpe.

See Also

For information on parallel processing and progress updates please see nflfastR.

Examples

Run this code
# \donttest{
# Get schedules for the whole 2015 - 2018 seasons
fast_scraper_schedules(2015:2018)
# \dontshow{
# Close open connections for R CMD Check
future::plan("sequential")
# }
# }

Run the code above in your browser using DataLab