Skip to contents

If screened features are from multi-response data, this function allows to adopt different strategies.

Usage

multiresponse(x, multi = c("max", "min", "avg", "sum", "idx"), idx = NULL)

Arguments

x

matrix containing the values to combine.

multi

character string indicating what to do when x has multiple columns.

Available options are:

"max"

the maximum value across responses is kept

"min"

the minimum value across responses is kept

"avg"

values are averaged

"sum"

values are summed up

"idx"

return the column indicated by idx

idx

(optional) integer value or character string indicating the column of x to keep.

Value

A vector.

Author

Alessandro Barberis