powered by
This function chooses the (first) most frequent or middle of sorted vector, similar to the concept of mode
mode
.sortMid(x, retVal = TRUE)
This function returns a numeric verctor
(numeric) main input
(logical) return value of most frequent, if FALSE return index of (1st) 'x' for most frequent
FALSE
simple/partial functionality in summarizeCols, checkSimValueInSer
summarizeCols
checkSimValueInSer
.sortMid(11:14) .sortMid(rep("b",3))
Run the code above in your browser using DataLab