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 <ccqu...@gmail.com> wrote:
> Hello,
>
> How do I get the dates of all Fridays between two dates?
>
> thanks,
>
> Ben
>
>        [[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.

______________________________________________
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.

Reply via email to