qmode: Value occuring most often (simple mode)

Description Usage Arguments Details Value Examples

View source: R/qmode.R

Description

Value occuring most often (simple mode)

Usage

1
qmode(x)

Arguments

x

numeric vector

Details

If NA is mode, then qmode(x)=NA. If there are two modes, qmode(x) takes the first.

Value

scalar estimate.

Examples

1
2
3
4
5
6
 ## Not run: 

 qmode(rpois(10, 1))
 
 
## End(Not run)

sumtxt/datatools documentation built on Oct. 7, 2018, 11:18 p.m.