normalize: Normalize a vector of data

Description Usage Arguments Value

View source: R/factor-normalize.R

Description

Normalize a vector of data by cleaning extremes and standardizing.

Usage

1
2
3
4
5
6
normalize(
  x,
  clean_extremes_method = c("sigma", "mad"),
  standard_method = c("normal", "rank"),
  ...
)

Arguments

x

a vector of data.

clean_extremes_method

method of cleaning extremes before standardization , i.e. "sigma","mad", by default "sigma". see details: clean_extremes_sigma, clean_extremes_mad

standard_method

method of standardizing data, i.e. "normal","rank", by default "normal". see details: standardize_normal_scale, standardize_rank_scale

...

additional arguments to clean_extremes_method and standard_method.

Value

1
       a vector of normalized data

chriszheng2016/zstmodelr documentation built on June 13, 2021, 8:59 p.m.