norm_sum | R Documentation |
Normalize values
so that sum(values) == sum
.
norm_sum(values, sum = 1)
values |
A numeric vector. |
sum |
|
values
normalized so that sum(result) == sum
.
Returns unchanged values
when sum(values) == 0
norm_none()
, norm_max()
norm_sum(c(0, 0.5, 0.7))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.