Re: [R] trouble parsing a date using strptime()

2011-07-06 Thread jim holtman
paste on a 'day' since it is trying to convert to something that is ambigous: > strptime("2011010","%Y%W%w") [1] "2011-01-02" > strptime("2011520","%Y%W%w") [1] "2011-12-25" > strptime("2011120","%Y%W%w") [1] "2011-03-20" > strptime("2011200","%Y%W%w") [1] "2011-05-15" On Wed, Jul 6, 2011 at 3:

[R] trouble parsing a date using strptime()

2011-07-06 Thread David Pitkin
Hi, I am having a trouble parsing dates using strptime() that I get in the format of year and week number. The data looks like this "201127" which means year 2011 and week 27. I would like to graph this using ggplot but then I get a gap between 201054 and 201101 so I thought I would just easily co