Skip to contents

Validation helper to determine if the seasons argument to obtain the play-by-play database is 1999 or later.

Usage

validate_pbp_season(season)

Arguments

season

NFL season to obtain play-by-play 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 1999 or greater

Details

The function validate_pbp_season can be utilized to validate whether the arguments for season are appropriate as NFL play-by-play data dates back to 1999. If any season is defined prior to 1999, an error will occur.

See also

get_pbp_data: Obtain filtered play-by-play data utilizes this helper function

Author

Nolan MacDonald