View source: R/trans_norm_zscore.R
zscore | R Documentation |
Scale data using z-score normalization.
zscore = (x - mean(x))/sd(x)
zscore(nmean = 0, nsd = 1)
nmean |
new mean for normalized data |
nsd |
new standard deviation for normalized data |
returns the z-score transformation object
data(iris)
head(iris)
trans <- zscore()
trans <- fit(trans, iris)
tiris <- transform(trans, iris)
head(tiris)
itiris <- inverse_transform(trans, tiris)
head(itiris)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.