R/mutation.R

Defines functions mutation

Documented in mutation

mutation <- function(pop,mfreq){

        changes <- array(as.vector(runif(pop)<mfreq,mode="numeric"),dim=dim(pop));
        array(as.vector(xor(pop,changes),mode="numeric"),dim=dim(pop));

}

Try the GABi package in your browser

Any scripts or data that you put into this service are public.

GABi documentation built on May 29, 2017, 11:02 a.m.