Learn R Programming

sdsfun (version 0.7.0)

standardize_vector: standardization

Description

To calculate the Z-score using variance normalization, the formula is as follows:

\(Z = \frac{(x - mean(x))}{sd(x)}\)

Usage

standardize_vector(x)

Value

A standardized numeric vector

Arguments

x

A numeric vector

Examples

Run this code
standardize_vector(1:10)

Run the code above in your browser using DataLab