
ISO yearweek to last date (Sunday)
Source:R/conversion_date_isoweek_isoyear.R
isoyearweek_to_last_date.RdReturns the date of the Sunday that ends a given ISO yearweek.
Usage
isoyearweek_to_last_date(x)
# Default S3 method
isoyearweek_to_last_date(x)
# S3 method for class 'character'
isoyearweek_to_last_date(x)Value
A base::Date vector giving the Sunday of each ISO yearweek.
Details
ISO weeks run Monday to Sunday, so the returned date is the Sunday of the supplied yearweek.
See also
isoyear_to_last_date() and season_to_last_date() do the same for
an ISO year and for a season. Each takes a different input grammar, so they
are not interchangeable.
vignette("date_conversion", package = "cstime") for worked date, ISO year
and ISO week conversions. No vignette runs this function.
Examples
isoyearweek_to_last_date(c("2019-19", "2020-01"))
#> [1] "2019-05-12" "2020-01-05"