Skip to contents

Obtain QB cumulative season stats from nflreadr, to acquire Next Gen Stats (NGS) data.

Usage

get_qb_ngs_advstats_season(seasons = NULL)

Format

A data frame with 33 variables that are described below.

player_id

Player gsis id (e.g., 00-0034796)

player_display_name

Player name (e.g., Lamar Jackson)

player_name

Player shortened name (e.g., L.Jackson)

position

Player position

pass_yards

Total pass yards

pass_touchdowns

Total pass touchdowns

interceptions

Total interceptions

passer_rating

Average passer rating

attempts

Total pass attempts

completions

Total pass completions

completion_percentage

Average completion percentage (%)

expected_completion_percentage

Expected completion percentage

completion_percentage_above_expectation

Average expected completion percentage (xCOMP)

avg_air_distance

Average air distance

max_air_distance

Maximum or longest air distance

avg_time_to_throw

Average time to throw (TT)

avg_completed_air_yards

Average completed air yards (CAY)

avg_intended_air_yards

Average intended air yards (IAY)

avg_air_yards_differential

Average air yards differential (AYD)

aggressiveness

Average aggressiveness (AGG%)

max_completed_air_distance

Maximum or longest completed air distance (LCAD)

avg_air_yards_to_sticks

Average air yards to the sticks (AYTS)

Arguments

seasons

NFL Season(s) where seasons = 2024 or seasons = c(2023, 2024)

Value

Dataframe with QB Next Gen Stats for a defined season

Details

get_qb_ngs_advstats_season is a function to obtain NFL Next Gen Stats (NGS) for an entire season or multiple seasons. The function utilizes the nflreadr function load_nextgen_stats to load player level weekly stats starting with the 2016 season. For quarterbacks, the stat_type is defined as passing and is updated every night. NGS will only provide data for players above a minimum number of receptions. More information is available about NGS stats from NGS glossary.

See also

load_nextgen_stats Load player level weekly NFL Next Gen Stats

Author

Nolan MacDonald