Try this: c(Sys.Date() + 0:3, Sys.Date() - 0:3)
or 0:3 %*% matrix(c(1, -1), ncol = 2) + Sys.Date() On Thu, Aug 5, 2010 at 8:36 AM, Sergey Goriatchev <serg...@gmail.com> wrote: > Hello everyone > > I need to extract a vector of (t-3) to (t+3) dates, only working days. > How can I do that? > > For today I need a vector: > 10.08.210 > 09.08.2010 > 06.08.2010 > 05.08.2010 > 04.08.2010 > 03.08.2010 > 02.08.2010 > > Regards, > Sergey > > -- > Kniven skärpes bara mot stenen. > > ______________________________________________ > R-help@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. > -- Henrique Dallazuanna Curitiba-Paraná-Brasil 25° 25' 40" S 49° 16' 22" O [[alternative HTML version deleted]]
______________________________________________ R-help@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.