[R] fridays date to date
R. Michael Weylandt
michael.weylandt at gmail.com
Thu Mar 1 21:20:49 CET 2012
Inelegant, but here's one way:
d1 <- Sys.Date()
d2 <- Sys.Date() + 100
library(lubridate)
d <- seq(d1, d2, by = "day")
d[wday(d)==6]
Michael
On Thu, Mar 1, 2012 at 3:02 PM, Ben quant <ccquant at gmail.com> wrote:
> Hello,
>
> How do I get the dates of all Fridays between two dates?
>
> thanks,
>
> Ben
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
More information about the R-help
mailing list