dot-sortMid: Choose most frequent or middle of sorted vector

.sortMidR Documentation

Choose most frequent or middle of sorted vector

Description

This function chooses the (first) most frequent or middle of sorted vector, similar to the concept of mode

Usage

.sortMid(x, retVal = TRUE)

Arguments

x

(numeric) main input

retVal

(logical) return value of most frequent, if FALSE return index of (1st) 'x' for most frequent

Value

This function returns a numeric verctor

See Also

simple/partial functionality in summarizeCols, checkSimValueInSer

Examples

.sortMid(11:14)
.sortMid(rep("b",3))

wrMisc documentation built on Sept. 11, 2024, 6:10 p.m.