Last chance! 50% off unlimited learning
Sale ends in
Fitness function that calculates the number of 1s in each individual
maxone1(x, ...)
A vector
Further arguments passed to or from other methods.
Number of 1s
# NOT RUN {
C2 = c(1, 1, 1, 0, 1, 0, 0, 0)
maxone1(C2)
C3 = c(1, 1, 1, 1, 1, 1, 1, 1)
maxone1(C3)
# }
Run the code above in your browser using DataLab