View source: R/clanToolsFunctions.R
most.common.element | R Documentation |
Find the most common element(s) in a single vector This functions also handles NULL vectors and NA-values.
xx <- c(NA,1:100,NA)
most.common.element(xx,1)
x |
is the vector |
max.number.of.elements |
is the limit elements in the return vector |
The most common element in the vector
Claus E. Andersen
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.