rescaleSD | R Documentation |
Perform a standard deviational stretch on any numeric coercible to a vector object. Z-scores are first calculated, and values that exceed the threshold are reassigned the theshold value
rescaleSD(x, stdev = 2)
x |
The input value, vector, list, or anything coercible to a vector with
|
stdev |
The threshold number of standard deviations. Input values |
A numeric vector with threshold-limited z-scores
# Create a vector
x <- rnorm(10, mean = 10, sd = 10)
y <- rescaleSD(x, stdev = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.