Mode | R Documentation |
Determine the most frequent value
Mode(x, breaktie = T)
x |
input vector |
breaktie |
if TRUE (default), then tie is broken with the first value. If FALSE, all tied values are returned. |
most frequent value in x
x = c(1,1,1,2,2,2,3,4)
Mode(x)
Mode(x,breaktie=F)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.