normalize {bazar} | R Documentation |
This function divides x
by the result of fun(x)
.
normalize(x, fun = "max", na.rm = TRUE, ...)
x |
numeric. A vector. |
fun |
character or function. Should own an |
na.rm |
Should missing values be removed in the calculation of |
... |
Additional arguments to be passed to |
A numeric vector of the same length as x
.
x <- rnorm(10)
normalize(x)