scale | R Documentation |
Note that vector with all the same values will be filled with 0.5.
scale(vec, na_rm = TRUE)
vec |
vector with numbers |
na_rm |
flag stating whether to ignore NA values or not |
vector with scaled values
Other scaling:
zscore()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.