most.common.element: Find the most common element(s) in a single vector.

Description Usage Arguments Value Author(s)

View source: R/clanToolsFunctions.R

Description

Find the most common element(s) in a single vector This functions also handles NULL vectors and NA-values.

Usage

1
2
xx <- c(NA,1:100,NA)
most.common.element(xx,1)

Arguments

x

is the vector

max.number.of.elements

is the limit elements in the return vector

Value

The most common element in the vector

Author(s)

Claus E. Andersen


claus-e-andersen/clanTools documentation built on Oct. 23, 2020, 7:59 a.m.