Description Usage Arguments Details
Robustly scale a numeric vector.
1 |
x |
A numeric vector. |
center |
Logical, whether to center using the median. Defauts to
|
scale |
Logical, whether to scale using the mad. Defaults to
|
na.action |
What to do when there are missing values. Defaults to
|
The vector will be centered by its median and then scaled by its median absolute deviation. There may be better (more efficient) ways of doing this (say by using M-estimators of location and scale), but for most cases, this approach ought to be fine.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.