Skip to contents

Internal function to compute global scaling parameters (mean and standard deviation) for time series lists. Used within tsl_transform() when the scaling functions f_center(), f_scale(), or base::scale() are used as inputs for the argument f.

Warning: this function removes exclusive columns from the data. See function tsl_subset().

Usage

utils_global_scaling_params(tsl = NULL, f = NULL, ...)

Arguments

tsl

(required, list) Time series list. Default: NULL

f

(required, function) function name. Usually, one of f_center(), f_scale(), or base::scale(). Default: NULL

...

(optional, arguments of f) Optional arguments for the transformation function. Used only when f = scale for arguments center and scale.

Value

list

See also