#' Min Mode: Find the least common value
#'
#' @param x vector of states
#'
#' @return least common value
minMode <- function(x){
ux <- unique(x)
return(ux[which(tabulate(match(x, ux))==min(tabulate(match(x, ux))))])
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.