dts2: Dataframe for ggplottimeseries

Description Usage Arguments Value Author(s) Examples

View source: R/dts2.R

Description

This function converts time series-class data into a data frame of decomposed time series.

Usage

1
dts2(x, type = "additive")

Arguments

x

a time series-class data

type

type of time series, either "additive" (default) or multiplicative

Value

This returns to a dataframe with the components of timeseries

date

date formatted as YYYY-MM-DD

observation

observation of the timeseries

trend

trend component of the timeseries

seasonal

seasonal component of the timeseries

random

random component of the timeseries

Author(s)

Brisneve Edullantes

Examples

1
2
3
data(co2)
df <- dts2(co2, type ="additive")
head(df)

brisneve/ggplottimeseries documentation built on May 7, 2019, 3:08 p.m.