[R] transforming year.weeknumber into dates

Dimitri Liakhovitski dimitri.liakhovitski at gmail.com
Fri Jul 15 19:54:12 CEST 2011


Hello!

I know how to transform dates into year.weeknumber format using zoo:

library(zoo)
as.numeric(format(as.Date("2010-10-02"), "%Y.%W"))

But is there a straightforward way to do the opposite - to transform
character strings like "2009.12" or "2009.30" back into dates
(assuming that weeks start on Monday)?
Thanks a lot!


-- 
Dimitri Liakhovitski



More information about the R-help mailing list