It's kinda dumb that R doesn't have a built-in mode function. So here.
vector of values; can be integers/strings/booleans/etc.
value the value that occurs most often
1 2 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.