zscore {daltoolbox}R Documentation

z-score normalization

Description

Scale data using z-score normalization. zscore = (x - mean(x))/sd(x).

Usage

zscore(nmean = 0, nsd = 1)

Arguments

nmean

new mean for normalized data

nsd

new standard deviation for normalized data

Value

z-score transformation object

Examples

data(iris)
head(iris)

trans <- zscore()
trans <- fit(trans, iris)
tiris <- transform(trans, iris)
head(tiris)

itiris <- inverse_transform(trans, tiris)
head(itiris)

[Package daltoolbox version 1.0.767 Index]