Description Usage Arguments Value Examples
View source: R/stack_normalise.R
Normalise a vector of numbers to sum to 1
1 |
x |
A vector of numbers |
The vector x normalised to proportions
1 2 3 4 5 6 | x <- c(10, 30, 40)
stack_normalize(x)
x <- c(75, 0, 5, 20, NA)
stack_normalise(x)
x <- c(NA, NA, 10)
stack_normalize(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.