Remove duplicates in c(xhist,off)
, replace with non-duplicated individuals according to cf
.
removeDuplicatesOffspring(xhist, off, cf, df = duplicated)
Returns off
without duplicates
List of previous individuals
List of offspring individuals
Creation function, creates random new individuals
Dupliate Function. This function determines which elements in a list/population are duplicates. By default, this is the duplicated function from R-base.