zscore: Z-score normalization

View source: R/trans_norm_zscore.R

zscoreR 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

returns the 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)

daltoolbox documentation built on Nov. 3, 2024, 9:06 a.m.