maxone2 {adana} | R Documentation |
maxone2 fitness function
Description
Calculates the sum of each row of a matrix or data frame.
Usage
maxone2(x, ...)
Arguments
x |
A matrix or a data frame |
... |
Further arguments passed to or from other methods. |
Value
A vector includes sum of each row in a matrix or data frame
Author(s)
Zeynel Cebeci & Erkut Tekeli
See Also
Examples
binmat = matrix(nrow=5, ncol=8, byrow=TRUE, c(
1, 0, 1, 0, 1, 1, 1, 0,
1, 1, 1, 0, 1, 0, 0, 0,
1, 1, 1, 1, 1, 1, 1, 1,
0, 1, 0, 1, 0, 1, 1, 1,
0, 0, 0, 0, 0, 0, 0, 0
))
rownames(binmat) = paste0("C",1:5)
maxone2(binmat)
[Package adana version 1.1.0 Index]