modl.tsToDataFrame {predtoolsTS}R Documentation

Ts to data frame transformation

Description

Transform a ts object into a data frame using the given formula.

Usage

modl.tsToDataFrame(tserie, formula = NULL)

Arguments

tserie

A ts object.

formula

An integer vector. Contains the indexes from the tserie wich will indicate how to extract the features. The last value will be the class index. Default value: c(1:16). Has to be length 6 minimum.

Value

the time serie as data frame

Author(s)

Alberto Vico Moreno

Examples

modl.tsToDataFrame(AirPassengers,formula=c(1,3,4,5,6,7))
modl.tsToDataFrame(AirPassengers,formula=c(1:20))

[Package predtoolsTS version 0.1.1 Index]