bind_as_xts: Create an xts time series object

Description Usage Arguments Value

View source: R/bind_as_xts.R

Description

bind_as_xts combines a time series with the output of forecast of the forecast package to create an xts object. This is a helper function that makes it easier to model data in the ts format and then plot the results in the xts format.

Usage

1
bind_as_xts(ts, forecast)

Arguments

ts

A time series with class "ts"

forecast

An object with class "forecast" created by forecast

Value

A time series with class "xts". The series will contain four columns, x (the original time series), fitted (the future predictions), lower, and upper (the lower and upper bounds of an 80 interval for the predictions)


rstudio/reportsWS documentation built on May 28, 2019, 5:42 a.m.