n_zscore {COINr} | R Documentation |
Z-score a vector
Description
Standardises a vector x
by scaling it to have a mean and standard deviation specified by m_sd
.
Usage
n_zscore(x, m_sd = c(0, 1))
Arguments
x |
A numeric vector |
m_sd |
A vector |
Value
Numeric vector
Examples
x <- runif(20)
n_zscore(x)
[Package COINr version 1.1.7 Index]