normalize: Normalize a time series

Description Usage Arguments Value Author(s)

Description

Normalizes a time series, either by stardization or by mapping to values between 0 and 1.

Usage

1
normalize(series, mode = "scale")

Arguments

series

A ts object or a ts list. The series to be normalized.

mode

A character. The normalization method. Set this parameter to 'maxmin' to map series values to values between 0 and 1. Alternatively, set this parameter to 'scale' to standardize (substract the mean and divide by the standard deviation).

Value

A ts object or a ts list. The normalized series.

Author(s)

Talitha Speranza talitha.speranza@fgv.br


BETS documentation built on May 1, 2019, 7:48 p.m.