R/bitmut.R

Defines functions bitmut

Documented in bitmut

# Bit conversion mutation
bitmut = function(y, ...){
  m = length(y)
  v = sample(1:m, 1)
  y[v] = ifelse(y[v], 0, 1)
  return(list(mutant=y, mutgen=v))
}

Try the adana package in your browser

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

adana documentation built on March 18, 2022, 6:03 p.m.