Description Usage Arguments Value Author(s) Examples
View source: R/normalize_vector.R
Normalize a vector by subtracting its mean from all the elements and dividing by its SD
1 | normalize_vector(Vector, withSD = TRUE)
|
Vector |
A vector of numerical values |
withSD |
A Boolean indicating if divide by SD when normalizing. Defaults to |
Returns a vector of same length, with normalized values
Subhrangshu Nandi, PhD Statistics, UW Madison; snandi@wisc.edu or nands31@gmail.com
1 2 | vector <- c( 2, 3, 5, 2, 1 )
normalize_vector( vector, TRUE )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.