proportion {tsensembler} | R Documentation |
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.
proportion(x)
x |
a numeric vector; |
A vector of proportions
proportion(rnorm(5L))
proportion(1:10)