#' Convert factor to numeric
#'
#' @param x factor vector
#'
#' @return numeric vector
#' @export
as_numeric_factor <- function(x) as.numeric(levels(x))[x]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.