#' Get the mode of a vector
#'
#' @param x a vector
#'
#' @return Mode of x
#' @export
get_mode <- function(x) {
values <- unique(stats::na.omit(x))
values[which.max(tabulate(match(x, values)))]
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.