scale_robust | R Documentation |
Robust Scale A variant of 'scale' that is based on median and mad (instead of mean and sd). It can handle zero variance without producing nan:s.
scale_robust(x, th = .Machine$double.eps)
x |
the vector/matrix to normalise |
th |
threshold for the scale being zero |
scaled_x (with attributes "scaled:center" and "scaled:scale")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.