1
Normally I calculate the week of the year by the standard date format mask %Y%W
. Till 2019 it worked quite good but last days I've noticed that the first week of the year 2019 (2018/12/31-2019/01/06) is shown like the last week number 53 from 2018. And only the week 2019/01/07-2019/01/13 is the first week of 2019. I've checked if it's correct.
Everywhere you can see that the week 2018/12/31-2019/01/06 is currently the first week of 2019. And even Oracle knows it to_char(..., 'yyyyiw')
, but R doesn't. At least it should have the same opinion.
It does matter for me and I think it looks like a bug. I'm using R 3.5.0.
Thanks a lot! I didn't know about the mask with %V. It's not always present in the date format descriptions, you can find on the internet. I didn't know there's something else. It was also confusing that the %W mask has worked very well in 2018. Anyway thanks! – Wladislaw Poniatowski – 2019-01-09T13:39:46.423