scaleandperiods: Scaling data function.

Description Usage Arguments Details Value Note Author(s)

View source: R/scaleandperiods.R

Description

This function scales the time series data in the interval [0,1] as deemed necessary in Nieto-Barajas and Contreras-Cristan (2014) for the time series clustering algorithm. It also obtains the time periods of the data set provided.

Usage

1

Arguments

data

Data frame with the time series information.

Details

The function considers that the time periods of the data appear as row names.

Value

periods

array with the time periods of the data.

mydata

data frame with the time series data scaled in [0,1].

cts

variable that indicates if some time series were removed because they were constant in time. If no time series were removed, cts = 0. If there were time series removed, cts indicates the column of such time series.

Note

For internal use.

Author(s)

Martell-Juarez, D.A.


BNPTSclust documentation built on May 30, 2017, 6:09 a.m.