Standardises a vector x by scaling it to have a mean and standard deviation specified by m_sd.
x
m_sd
n_zscore(x, m_sd = c(0, 1))
A numeric vector
A vector c(m, sd), where m is desired mean and sd is the target standard deviation.
c(m, sd)
m
sd
Numeric vector
x <- runif(20) n_zscore(x)