Remove Duplicates from Offsprings
Remove duplicates in c(xhist,off)
, replace with non-duplicated individuals according to cf
.
removeDuplicatesOffspring(xhist, off, cf, df = duplicated)
xhist |
List of previous individuals |
off |
List of offspring individuals |
cf |
Creation function, creates random new individuals |
df |
Dupliate Function. This function determines which elements in a list/population are duplicates. By default, this is the duplicated function from R-base. |
Returns off
without duplicates
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.