Description Usage Arguments Value Examples
Create an initial population of chromosomes
1 | populate(pop.size, n.genes)
|
pop.size |
The number of chromosomes to generate |
n.loci |
The number of loci on each chromosome, corresponding to the number of features |
Returns a list of pop.size
randomly generated n.loci
-length chromosomes
1 2 3 4 | pop.size <- 2
n.loci <- 10
populate(pop.size, n.loci)
[1] "0101101000" "1100010100"
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.