getting ISO week
Perhaps you mean is that the definition ought be otherwise but at least according to one standard the definition is correct: http://www.opengroup.org/onlinepubs/009695399/functions/strptime.html
On Thu, Dec 11, 2008 at 3:01 PM, Hans W. Borchers <hwborchers at gmail.com> wrote:
Gabor Grothendieck <ggrothendieck <at> gmail.com> writes:
According to the definition in ?strptime (which is not the same as the ISO definition): format(x, "%W") returns "Week of the year as decimal number (00?53) using Monday as the first day of week (and typically with the first Monday of the year as day 1 of week 1). The UK convention." The first day of 2008 is a Tuesday which means that 2008 starts in week 0.
Yes I read that but it is still misleading and -- I think -- incorrect. See <www.dateandtime.org/calendar> to find out that this is week 50 even in the UK. We would have had a lot of misplaced business meetings in our company if the week numbers in Great Britain, Germany, and Sweden would actually be different. Hans Werner
... [rest deleted]
______________________________________________ R-help <at> r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.