powered by
Scale data using z-score normalization.
\(zscore = (x - mean(x))/sd(x)\)
zscore(nmean = 0, nsd = 1)
returns the z-score transformation object
new mean for normalized data
new standard deviation for normalized data
data(iris) head(iris) trans <- zscore() trans <- fit(trans, iris) tiris <- transform(trans, iris) head(tiris) itiris <- inverse_transform(trans, tiris) head(itiris)
Run the code above in your browser using DataLab