Description Usage Arguments Value
View source: R/sharedSupport.r
Jason rewrote on 2011-11-02 and changed the test to reflect that the mode will always be the smallest value if there are ties. One test value returned 7 for a case with a 7 and 2 with three values each.
1 | modalvalue(x, na.rm = FALSE)
|
x |
vector of values of interest |
na.rm |
if TRUE, will remove NA values from consideration |
the value of the mode
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.