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
 qmode(rpois(10, 1))
 

sumtxt/datatools documentation built on Jan. 3, 2021, 1:39 a.m.