maxone2: maxone2 fitness function

View source: R/maxone2.R

maxone2R 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

maxone1, maxone, minone

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)

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

Related to maxone2 in adana...