Normalizes a time series, either by stardization or by mapping to values between 0 and 1.
normalize(series, mode = "scale")
A ts
object or a ts list
. The series to be normalized.
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).
A ts
object or a ts list
. The normalized series.