Description Usage Arguments Value Examples
This functions makes it easier to rescale continuous variables.
1 |
x |
A vector of interval-type data to standardise. |
type |
One of "z", "mean", "gelman", "01". Option "z" converts the scale to z-scores. Option "mean" rescales the data so that its mean is zero. Option "gelman" rescales the data so that it is centred on zero and a one-unit increase or decrease corresponds with the scale moving to its 97.5th and 2.5th percentile. Option "01" rescales the data from 0 to 1. Option "11" rescales the data from -1 to 1. |
na.rm |
Remove missing data? Defaults to TRUE. |
A vector of rescaled data.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.