normalize | R Documentation |
Normalizes the values in x so that they sum to 1. Proportion indicates whether to set values to 0.
normalize(x, proportion = 1)
x |
A numeric vector |
proportion |
A number between 0 and 1 |
A numeric vector of the normalized values.
normalize(c(0.1, 100, 10), proportion = 0.95)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.