zscore: Z-score normalization

View source: R/zscore.R

zscoreR Documentation

Z-score normalization

Description

Performs Z-score normalization to transform numerical variables.

Usage

zscore( x, columns = NULL, na.rm = FALSE )

Arguments

x

a numerical vector, matrix or data.frame.

columns

which columns are going to tranfer for the cases that x is a matrix or a data.frame. Defaults to all columns.

na.rm

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

Value

transformed version of x.

Author(s)

Reza Mohammadi a.mohammadi@uva.nl and Kevin Burke kevin.burke@ul.ie

See Also

transform, minmax

Examples

x = c( 2.3, -1.4, 0, 3.45 )

zscore( x )

liver documentation built on Nov. 2, 2023, 5:29 p.m.