ancestry-class: ancestry - class definition

Description Arguments Details Value Examples

Description

For each geneartion (G_i) in the Game of Evolution The ancestry of organisms is stored as a matrix

Arguments

map

a martix of numbers corresponding to which organisms of the previous generation each generation is related to

Details

This is the class definition a matrix contianing this information for generations 1 through n

Value

population

Examples

1
2
3
#Each row of the map in the ancestry object must be sorted in ascending order

ancestry_map <- ancestry( map = rbind(c(1,2,3,4,5),c(2,4,4,5,5)) )

fransilvion/REvolution documentation built on Nov. 4, 2019, 12:57 p.m.