factor_mode <- function(x) {
p_vector <- m_estimator(x)
x_levels <- levels(x)
x_mode <- which_maximum(p_vector)
# return
rout <- x_levels[x_mode]
return(rout)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.