Skip to contents

Validation helper to determine if weeks are defined properly to filter the play-by-play data.

Usage

validate_pbp_weeks(week_min, week_max)

Arguments

week_min

Minimum week to define whether pulling a range of weeks or the entire season. Use week_min = 1 for the first week of the season, must be an integer.

week_max

Maximum week to define a range of weeks to pull from an NFL season. If not defined, the data will be pulled for all weeks, beginning with week_min.

Value

Validate if weeks are defined as integers

Details

The function validate_pbp_weeks is utilized to determine weeks are defined as integers for week_min and week_max.

See also

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

Author

Nolan MacDonald