Learn R Programming

dtwclust (version 3.1.1)

zscore: Wrapper for z-normalization

Description

Wrapper for function scale that returns zeros instead of NaN. It also supports a list of vectors and a matrix input.

Usage

zscore(x, ..., multivariate = FALSE, keep.attributes = FALSE)

Arguments

x
Data to normalize. Either a vector, a matrix/data.frame where each row is to be normalized, or a list of vectors.
...
Further arguments to pass to scale.
multivariate
Is x a multivariate time series? It will be detected automatically if a list is provided in x.
keep.attributes
Should the mean and standard deviation returned by scale be preserved?

Value

Normalized data in the same format as provided.