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

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 May 29, 2024, 1:57 a.m.