Description Usage Arguments Value Author(s) Examples
Returned the integer
with the highest number of
occurences in a vector
.
When more than one integer
have the highest number of occurences,
NA
is returned.
1 |
sample |
a |
a integer
with the highest number of occurences or
NA
when more than one integer
have the highest number
of occurences.
Rawane Samb, Astrid Deschenes
1 2 3 4 5 6 | ## Return the element with the hightest number of occurence
data01 <- c(1L, 2L, 5L, 10L, 5L, 10L, 5L)
RJMCMC:::elementWithHighestMode(data01)
data02 <- c(3L, 6L, 4L, 3L, 6L)
RJMCMC:::elementWithHighestMode(data02)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.