randomValuesWithSum | R Documentation |
Vector of random Integer Values of given Sum
randomValuesWithSum(n, sumOfValues, names = seq_len(n))
n |
number of values |
sumOfValues |
sum of values in the result vector |
names |
names of elements in the result vector. Default:
|
named vector of integer values with sum(values) == sumOfValues
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.