This function will return a data.frame after downloading the original file from the nflscrapR-data website.

download_nflscrapR_data(type = "regular", year)

Arguments

type

A character string specifying "regular", "pre", or "post", for regular, pre, or post season, respectively.

year

A year from 2009 to 2019

Value

A data.frame containing play-by-play information from NFL games

Examples

if (FALSE) { df <- download_nflscrapR_data("regular", 2019) }