# Mon Apr 02 22:23:25 2018 ------------------------------
#' Transform numeric/character vector to factor with natively ordered levels
#'
#' @param x numeric or character vector
#'
#' @return
#'
nativefac <- function(x){
factor(as.character(x), levels=unique(x))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.