powered by
This function uses the Holiday dates of the timeDate package to create several dummies on a specified holiday.
Time(from = -10, to = 10, dates = timeDate::Easter(2000:2030))
Relative to Holiday, starting date
Relative to Holiday, end date
Which Holidays shall be used
With shift the user can specify for how many days before (negative value) or after (positive value) the holiday a dummy will be created.
# NOT RUN { output(Time(from=5, to=10, dates=timeDate::Easter(2000:2030)) # }
Run the code above in your browser using DataLab