Data
About the Data
For our analysis, we use a variety of data provided by the nflverse (Carl et al. 2022), nflreadr (Ho and Carl 2023), and nfl-data-py (Adams 2023) packages. Here, we briefly describe the notable contents of each one.
nflverse
The nflverse package offers several sub-packages, including nflfastR, nflplotR, nflreadr, and more.
This package can be installed and utilized with the following commands in R:
install.packages("nflverse")
library("nflverse")nflreadr
The nflreadr package in R offers numerous datasets regarding NFL play-by-play data, team data, combine data, and more.
This package can be installed and utilized with the following commands in R:
install.packages("nflreadr")
library("nflreadr")nfl-data-py
The nfl-data-py package in Python also offers numerous datasets regarding NFL play-by-play data, team data, combine data, and more.
This package can be installed and utilized with the following commands in Python:
!pip install nfl-data-py
import nfl-data-py as nfl