random_drifts: Drift with many competitors function

Description Usage Arguments Examples

Description

What happens if we have a population of coloured balls and let them drift?

Usage

1
random_drifts(colours = 5, trials, size, rel.freq = NULL)

Arguments

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.

Examples

1
random_drifts(colours = 10, trials = 1000, size = 1000)

Euphrasiologist/GOL documentation built on June 26, 2019, 10:58 a.m.