isoYearWeek | R Documentation |
Returns the ISO year and week in character string format (e.g., 2020w03) of a date object
isoYearWeek(date, weekformat = NULL)
date |
A date Value |
weekformat |
A string to represent the week separator. Default is "w". May be one or more characters (eg : "-W") |
The iso year week of the Date in YYYYwXX format (2020w03)
isoYear()
, isoWeek()
, lpad()
and base::format()
isoYearWeek(Sys.Date())
isoYearWeek(as.Date("2020-12-31"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.