[R-SIG-Finance] Time given the week number and year.

Kevin Burton rkevinburton at charter.net
Tue Oct 11 04:28:45 CEST 2011


I am trying to convert from a week number and year to a date. The first
thing I try

strptime("2011-01", "%Y-%W")

gives me:

[1] "2011-10-10"

This is wrong as the first week of the year is not in October. Any
suggestions on how I can do this conversion?

Thank you.

Kevin



More information about the R-SIG-Finance mailing list