Learn R Programming

dsa (version 0.74.18)

Time: Creating Several Holiday dummy

Description

This function uses the Holiday dates of the timeDate package to create several dummies on a specified holiday.

Usage

Time(from = -10, to = 10, dates = timeDate::Easter(2000:2030))

Arguments

from

Relative to Holiday, starting date

to

Relative to Holiday, end date

dates

Which Holidays shall be used

Details

With shift the user can specify for how many days before (negative value) or after (positive value) the holiday a dummy will be created.

Examples

Run this code
# NOT RUN {
output(Time(from=5, to=10, dates=timeDate::Easter(2000:2030))
# }

Run the code above in your browser using DataLab