Random Mating
Examples
nCross <- 10
inds <- paste0("ind-", seq(1:5))
names <- paste0("newInd-", seq(1:nCross))
randomMate(inds, nCross, names)
#> ind1 ind2 n names
#> 1 ind-5 ind-5 1 newInd-1
#> 2 ind-4 ind-4 1 newInd-2
#> 3 ind-5 ind-4 1 newInd-3
#> 4 ind-5 ind-2 1 newInd-4
#> 5 ind-1 ind-4 1 newInd-5
#> 6 ind-5 ind-2 1 newInd-6
#> 7 ind-2 ind-5 1 newInd-7
#> 8 ind-5 ind-2 1 newInd-8
#> 9 ind-4 ind-4 1 newInd-9
#> 10 ind-2 ind-5 1 newInd-10