#' Convert factor to numeric
#'
#' @param x factor vector
#'
#' @return numeric vector
#'
#' @export as.numeric.factor
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.