.sortMid {wrMisc}R 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))

[Package wrMisc version 1.15.1 Index]