Mode {lazy.tree} | R Documentation |
Mode of the Input Vector
Mode(y)
y |
The input vector (factor) |
Returns NA when the input is NULL or NA. When there are ties, the smallest value will be returned.
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.