Learn R Programming

liver (version 1.0)

zscore: Z-score normalization

Description

Performs Z-score normalization to transform numerical variables.

Usage

zscore( x, na.rm = FALSE )

Arguments

x

a numerical vector, matrix or data.frame.

na.rm

a logical value indicating whether NA values in x should be stripped before the computation proceeds.

Value

transformed version of x.

See Also

transform, minmax

Examples

Run this code
# NOT RUN {
x = c( 2.3, -1.4, 0, 3.45 )

zscore( x )
# }

Run the code above in your browser using DataLab