convert2factor = function(x, vars) { for (i in vars) x[,i] = as.factor(as.character(x[,i])) return(x) }
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.