n_zscore {COINr} | R Documentation |
Standardises a vector x
by scaling it to have a mean and standard deviation specified by m_sd
.
n_zscore(x, m_sd = c(0, 1))
x |
A numeric vector |
m_sd |
A vector |
Numeric vector
x <- runif(20)
n_zscore(x)