I have a data frame in R with the week of the year that I would like to convert to a date. I know I have to pick a year and a day of the week so I am fixing those values at
as.Date is calling the 1 to 9 as NA as it is expects two digits for the week number and can't properly parse it.
as.Date
To fix it, add in some - to split things up:
as.Date(paste(2014, df$Week, 1, sep="-"), "%Y-%U-%u")