Learn R Programming

predtoolsTS (version 0.1.1)

modl.tsToDataFrame: 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

Examples

Run this code
# NOT RUN {
modl.tsToDataFrame(AirPassengers,formula=c(1,3,4,5,6,7))
modl.tsToDataFrame(AirPassengers,formula=c(1:20))
# }

Run the code above in your browser using DataLab