Returns the date of the Sunday that ends a given season.
Usage
season_to_last_date(x)
# Default S3 method
season_to_last_date(x)
# S3 method for class 'character'
season_to_last_date(x)Value
A base::Date vector giving the last Sunday of each season.
Details
A season is written "yyyy/yyyy" where the two years are consecutive, for example "2019/2020". Seasons are aligned to ISO weeks, and season week 1 starts at ISO week 35. The season therefore ends in late summer of the second year. The returned date is the Sunday of the final week of the season.
See also
isoyearweek_to_season_c() finds the season an ISO yearweek belongs
to. isoyear_to_last_date() and isoyearweek_to_last_date() do the same
for an ISO year and for an ISO yearweek.
vignette("season", package = "cstime") for worked season week
conversions. No vignette runs this function.
Examples
season_to_last_date(c("2019/2020", "2020/2021"))
#> [1] "2020-08-23" "2021-08-29"
