Learn R Programming

radiant.data (version 1.4.5)

standardize: Standardize

Description

Standardize

Usage

standardize(x, na.rm = TRUE)

Value

If x is a numeric variable return (x - mean(x)) / sd(x)

Arguments

x

Input variable

na.rm

If TRUE missing values are removed before calculation