date.range | R Documentation |

Returns the first and last dates of the influence window for the given holiday, among the given timestamps.

DateRange(holiday, timestamps)

`holiday` |
An object of class |

`timestamps` |
A vector of timestamps of class |

Returns a two-column data frame giving the first and last dates
of the influence window for the holiday in the period covered by
`timestamps`

.

Steven L. Scott steve.the.bayesian@gmail.com

holiday <- NamedHoliday("MemorialDay", days.before = 2, days.after = 2) timestamps <- seq.Date(from = as.Date("2001-01-01"), by = "day", length.out = 365 * 10) influence <- DateRange(holiday, timestamps)

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.