This creates a vector of N whole numbers that add up to M.
1 | rand_intvect(N, M, sd = 1, pos.only = TRUE)
|
N |
number of values in vector |
M |
total values should add up to |
sd |
sd of values, default is 1 |
pos.only |
should the vector contain only positive values, default is TRUE |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.