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
matrixcontaining the values to combine.- multi
character string indicating what to do when
xhas 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
xto keep.