create_df_holidays: Create data frame containing holiday dates

Description Usage Arguments Value Examples

View source: R/create_holidays_df.R

Description

This is is used with the prophet package to do forecasting of time series. Adding holiday information may improve the accuracy of the forecast.

Usage

1

Arguments

begin

Date indicating when we should start looking for holidays.

end

Date indicating when we should stop looking for holidays.

Value

A data frame with two columns: ds and holiday. The former contains a date, and the latter, a description of the holiday.

Examples

1
create_df_holidays(lubridate::ymd("20180101"), lubridate::ymd("20181231"))

SHIPS-SHA/rships documentation built on May 21, 2019, 9:43 a.m.