dateFromWeek {wktmo} | R Documentation |
Returns the dates of a particular week. The week can be defined by ISO week or epi week.
dateFromWeek(year, wkIndex, wkMethod = "ISO")
year |
a value for the year. |
wkIndex |
a value for the week index of the year. |
wkMethod |
a character string for the week-counting method. Default is "ISO" for ISO-week; other options are "epiSat", "epiSun" and "epiMon" for epi-week method defining Saturday, Sunday and Monday as the firstday in a week, respectively. |
a vector of length 7, containing all the dates in the week, with the format of yyyy-mm-dd.
You Li
weekToMonth
dateFromWeek(year = 2000, wkIndex = 20)
dateFromWeek(year = 2009, wkIndex = 53)
dateFromWeek(year = 2015, wkIndex = 1, wkMethod = "epiSun")