Scales a numeric vector by centering it around its mean and scaling it by its range.
The resulting vector has a mean of 0 and values typically within [-1, 1].
Usage
norm_mean(x, na.rm = TRUE)
Value
A numeric vector.
If the range is 0 (all values are identical), returns a centered vector (zeros).
Arguments
x
A numeric vector.
na.rm
Logical. Should NA values be removed during calculation?
Default is TRUE.