Skip to contents

A helper function to choose the most recent season available for a given dataset

Usage

most_recent_season(roster = FALSE)

Arguments

roster

a TRUE/FALSE flag: if TRUE, returns the current year if March 1st or later. if FALSE, returns the current year if September 1st or later. Otherwise returns current year minus 1.

Value

season (a four digit numeric)