Description Usage Arguments Value Examples
Generate positive random numbers that sum to a value
1 | rand_vect_cont(N, M, sd = 1)
|
N |
number of numbers to generate |
M |
constraint on the sum |
sd |
standard deviation of values |
a vector of numerics, length N
1 2 3 | out <- rand_vect_cont(N = 10, M = 2, sd = 1)
sum(out)
length(out)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.