powered by
Normalize values so that sum(values) == sum.
values
sum(values) == sum
norm_sum(values, sum = 1)
values normalized so that sum(result) == sum. Returns unchanged values when sum(values) == 0
sum(result) == sum
sum(values) == 0
A numeric vector.
numeric(1).
numeric(1)
norm_none(), norm_max()
norm_none()
norm_max()
norm_sum(c(0, 0.5, 0.7))
Run the code above in your browser using DataLab