#' Return the non-NA statistical mode of a character/numeric string.
Mode <- function(input) {
uinput <- unique(input)
uinput_noNA <- uinput[!is.na(uinput)]
uinput_noNA[which.max(tabulate(match(input, uinput_noNA)))]
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.