update_horizon: Updates Forecast Horizon Based on Input Data and Target

View source: R/epinow-internal.R

update_horizonR Documentation

Updates Forecast Horizon Based on Input Data and Target

Description

[Stable] Makes sure that a forecast is returned for the user specified time period beyond the target date.

Usage

update_horizon(horizon, target_date, data)

Arguments

horizon

Numeric, defaults to 7. Number of days into the future to forecast.

target_date

Date, defaults to maximum found in the data if not specified.

data

A ⁠<data.frame>⁠ of confirmed cases (confirm) by date (date). confirm must be numeric and date must be in date format.

Value

Numeric forecast horizon adjusted for the users intention


EpiNow2 documentation built on Oct. 31, 2024, 5:09 p.m.