Skip to contents

Validation helper to determine if the seasons argument to obtain PFR is 2018 or later.

Usage

validate_pfr_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 2018 or greater

Details

The function validate_pfr_season can be utilized to validate whether the arguments for season are appropriate as PFR advanced stats dates back to 2018. If any season is defined prior to 2018, an error will occur.

See also

get_qb_pfr_advstats_season: Obtain QB advanced season stats from nflreadr, to acquire Pro Football Reference (PFR) data. The function utilizes this helper.

get_rb_pfr_advstats_season: Obtain RB advanced season stats from nflreadr, to acquire Pro Football Reference (PFR) data. The function utilizes this helper.

get_wr_pfr_advstats_season: Obtain WR advanced season stats from nflreadr, to acquire Pro Football Reference (PFR) data. The function utilizes this helper.

get_te_pfr_advstats_season: Obtain TE advanced season stats from nflreadr, to acquire Pro Football Reference (PFR) data. The function utilizes this helper.

Author

Nolan MacDonald