Mode {lazy.tree}R Documentation

Mode of the Input Vector

Description

Mode of the Input Vector

Usage

Mode(y)

Arguments

y

The input vector (factor)

Details

Returns NA when the input is NULL or NA. When there are ties, the smallest value will be returned.

Examples

Mode( letters[c(1,2,2,3,3,3,4,4)] )
Mode( c(1,2,2,3,3,3,4,4) )
Mode( c(1,2,2,3,3,4,4) )
Mode( rev(c(1,2,2,3,3,4,4)) ) # same as above.


[Package lazy.tree version 0.1.5 ]