sts_normalize: sts_normalize
Description
Statistic helper function to normalize a continuous variable
between zero and one.
Usage
sts_normalize(x, na.rm = FALSE)
Value
Returns a vector of same length as x with values normalized between
zero and one. If x contains missings and na.rm = TRUE, the missings are
removed before normalization; otherwise, a vector of NA is returend.
Arguments
- x
A vector of type numeric.
- na.rm
A logical to indicate, if missings should be removed.