View source: R/sts_normalize.R
sts_normalize | R Documentation |
Statistic helper function to normalize a continuous variable between zero and one.
sts_normalize(x, na.rm = FALSE)
x |
A vector of type |
na.rm |
A logical to indicate, if missings should be removed. |
Returns a vector of same length as x
with values normalized between
zero and one. If x
contains missings and na.rm = TRUE
, the missings are
removed before normalization; otherwise, a vector of NA
is returend.
sts_normalize(1:100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.