Skip to contents

Validation helper to determine if the seasons argument to obtain NGS is 2016 or later.

Usage

validate_ngs_season(season)

Arguments

season

NFL season to obtain NGS data. The season can be defined as a single season, season = 2024. For multiple seasons, use either season = c(2023,2024) or season = 2022:2024.

Value

Validate if season is defined as an integer of 2016 or greater

Details

The function validate_ngs_season can be utilized to validate whether the arguments for season are appropriate as NFL NGS dates back to 2016. If any season is defined prior to 2016, an error will occur.

See also

get_qb_ngs_advstats_season: Obtain QB cumulative season stats from nflreadr, to acquire Next Gen Stats (NGS) data. The function utilizes this helper.

get_rb_ngs_advstats_season: Obtain RB cumulative season stats from nflreadr, to acquire Next Gen Stats (NGS) data. The function utilizes this helper.

get_wr_ngs_advstats_season: Obtain WR cumulative season stats from nflreadr, to acquire Next Gen Stats (NGS) data. The function utilizes this helper.

get_te_ngs_advstats_season: Obtain TE cumulative season stats from nflreadr, to acquire Next Gen Stats (NGS) data. The function utilizes this helper.

Author

Nolan MacDonald