Skip to contents

For a given date (defaults to the system date), returns the most recent or "current" college basketball season.

Usage

most_recent_season(date = Sys.Date())

Arguments

date

the date to obtain the most recent season of. Defaults to the system date.

Value

the most recent CBB season as an integer

Examples

# \donttest{
most_recent_season()
#> [1] 2025

most_recent_season("2022-09-01") # up to september, will be recorded as 2022
#> [1] 2022

most_recent_season("2022-10-01") # then will swap over to 2023 when we hit october
#> [1] 2023
# }