powered by
This function uses the Holiday dates of the timeDate::timeDate package to create dummies on a specified holiday.
make_holiday(dates = timeDate::Easter(2000:2030), shift = 0)
Holiday and period for which dummy shall be created
shifting point in time for dummy
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 { make_holiday(dates=timeDate::Easter(2000:2030), shift=-1) # }
Run the code above in your browser using DataLab