numeric_factor_class <- function(x) {
condition <- any(x %in% "ordered")
if (condition) {
rout <- "factor"
} else {
rout <- x
}
condition <- any(rout %in% "integer")
if (condition) {
rout <- "numeric"
} else {
rout <- rout
}
# return
return(rout)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.