Mode | R Documentation |
Function to compute the mode. Supports numeric, character, and factor variables.
Mode(x, na.rm = FALSE)
x |
An R object. Currently supports numeric, character, and factor vectors. |
na.rm |
a logical value indicating whether NA values should be stripped before the computation proceeds. |
This solution was written by Ken Williams and adapted by Gregor Thomas. It comes from this post on Stack Overflow.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.