Learn R Programming

prophet (version 1.0)

add_country_holidays: Add in built-in holidays for the specified country.

Description

These holidays will be included in addition to any specified on model initialization.

Usage

add_country_holidays(m, country_name)

Arguments

m

Prophet object.

country_name

Name of the country, like 'UnitedStates' or 'US'

Value

The prophet model with the holidays country set.

Details

Holidays will be calculated for arbitrary date ranges in the history and future. See the online documentation for the list of countries with built-in holidays.

Built-in country holidays can only be set for a single country.