normalize {bazar} | R Documentation |
Normalize a numeric vector
Description
This function divides x
by the result of fun(x)
.
Usage
normalize(x, fun = "max", na.rm = TRUE, ...)
Arguments
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 |
Value
A numeric vector of the same length as x
.
Examples
x <- rnorm(10)
normalize(x)
[Package bazar version 1.0.11 Index]