Description Usage Arguments Examples
What happens if we have a population of coloured balls and let them drift?
1 | random_drifts(colours = 5, trials, size, rel.freq = NULL)
|
colours |
number of different colours of balls |
trials |
the number of trials the game runs for |
size |
size of the initial population of balls |
rel.freq |
starting frequencies for the colours. If NULL, frequencies are drawn from the uniform distribution. |
1 | random_drifts(colours = 10, trials = 1000, size = 1000)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.