populate: Populate

Description Usage Arguments Value Examples

Description

Create an initial population of chromosomes

Usage

1
populate(pop.size, n.genes)

Arguments

pop.size

The number of chromosomes to generate

n.loci

The number of loci on each chromosome, corresponding to the number of features

Value

Returns a list of pop.size randomly generated n.loci-length chromosomes

Examples

1
2
3
4
pop.size <- 2
n.loci <- 10
populate(pop.size, n.loci)
[1] "0101101000" "1100010100"

tjmassaro/ssga documentation built on May 6, 2019, 7:33 a.m.