modalvalue | R Documentation |
The mode is the most common or modal value of a list.
modalvalue(x, na.rm=FALSE)
x |
A vector, array or list. |
na.rm |
Whether to remove missing values. |
This function calculates the mode of a vector, array or list (lists are flattened). This code originated from an anonymous post on the R Wiki.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.