standardize.vector: Standardize a vector by converting to z-scores.

View source: R/standardize.R

standardize.vectorR Documentation

Standardize a vector by converting to z-scores.

Description

Function to standardize a vectorby converting to z-scores.

Usage

standardize.vector(x)

Arguments

x
  • vector to standardize

Details

If sd(x) is 0, then 0*x is returned. If sd(x) is NA, then NA+x is returned.

not exported

Value

standardized vector as z-scores (same size as x)


wStockhausen/wtsUtilities documentation built on March 16, 2024, 10:38 a.m.