I work with the package lubridate
and am a little bit confused because Friday, January 29 and Monday, February, 2 belong to the same week, which doesn't make sense.
Here my code:
library(lubridate)
day1 <- "2021-01-29 00:03:43 CET"
day5 <- "2021-02-01 08:28:51 CET"
week(day1)
wday(day1, label = T)
week(day5)
wday(day5, label = T)
This gives me the following output
> week(day1)
[1] 5
> wday(day1, label = T)
[1] Fr\\.
Levels: So\\. < Mo\\. < Di\\. < Mi\\. < Do\\. < Fr\\. < Sa\\.
> week(day5)
[1] 5
> wday(day5, label = T)
[1] Mo\\.
Levels: So\\. < Mo\\. < Di\\. < Mi\\. < Do\\. < Fr\\. < Sa\\.
Another weird thing is the levels of the days. Any idea what is wrong here. I just updated all my packages.
Cheers Renger