Player Stats

Overview


One of the core datasets in the R nflvers package is the player stats data.

Offensive Stats


To load the offensive stats, execute the following command.


pstats <- nflreadr::load_player_stats(2021)

					


the following demonstrates how to load data from a specific season, or from multiple seasons.


pstats <- nflreadr::load_player_stats(seasons = 2021)
pstats2 <- nflreadr::load_player_stats(seasons = 2021:2022)
					

Kicking Stats


Kicking stats can be obtained by passing in the stat_type argument, setting it to "kicking".


kstats <- nflreadr::load_player_stats(2021, stat_type = "kicking")
					

Example Calculations


  • Total Passing Yards