ForecastHorizon: Generate forecast horizon time sequence

Description Usage Arguments Value Author(s) Examples

Description

Suport several data types included xts, zoo, ts or numeric. If numeric data are input, R try to build a date pattern based on sysdate().

Usage

1
ForecastHorizon(XtsData, tsfrequency, horizon)

Arguments

XtsData

input data set

tsfrequency

data frequency. It can be "year", "month", "day", "hour", "min" or "sec"

horizon

number representing total amount of points to generate the sequency of dates for the forecasts

Value

A lista conatining data transformed to ts and a date sequency for the forecasts

Author(s)

LOPES, J. E.

Examples

1
2
3
4
5
x <- ForecastHorizon(rnorm(100), 'day',20)
str(x)
data(datasample, package = "cvforecast")
y <- ConvertData(datasample[,1:2], tsfrequency = "day", OutType = "xts")
y <- ForecastHorizon(y, 'day', 20)

evandeilton/cvforecast documentation built on May 16, 2019, 9:36 a.m.