convert week numbers into dates

You can do this in base R using as.Date but you also need to specify day of the week to get an exact day. Using 1st day of the week (Monday) as an arbitrary date.

as.Date(paste0(dt1$Year_Week, 1), '%Y%W%u')
#[1] "2017-05-01" "2017-05-08" "2017-05-15"

Read ?strptime for various formats.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top