Description Usage Arguments Value Examples
Utility function used to compute the proportion of the values of a vector. The proportion of a value is its ratio relative to the sum of the vector.
1 | proportion(x, ...)
|
x |
a numeric vector; |
... |
Further arguments to |
A vector of proportions
1 2 | proportion(rnorm(5L))
proportion(1:10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.