[R] Vector of weekly dates starting with a given date

From: Dimitri Liakhovitski <dimitri.liakhovitski_at_gmail.com>
Date: Wed, 09 Mar 2011 16:04:26 -0500


Hello!

I have a date (a Monday):

date<-20081229
mydates<-as.Date(as.character(date),"%Y%m%d")

What package would allow me to create a vector that starts with that date (mydates) and contains dates for 51 Mondays that follow it (so, basically, 51 dates separated by a week)?

Thanks a lot for the pointer!

-- 
Dimitri Liakhovitski
Ninah Consulting
www.ninah.com

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 09 Mar 2011 - 21:06:45 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 09 Mar 2011 - 21:50:20 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive