| normalize {swfscMisc} | R Documentation |
Normalize a numeric vector to have a mean of zero and a standard deviation of one.\
normalize(x)
x |
a numeric vector. |
a numeric vector of the same length as x.
Eric Archer eric.archer@noaa.gov
x <- runif(20, 50, 110) x.norm <- normalize(x) mean(x) mean(x.norm) sd(x) sd(x.norm)