to.char <- function(df, factors.only = TRUE){
if(factors.only){
id <- sapply(df, is.factor)
df[id] <- lapply(df[id], as.factor)
} else {
id <- names(df)
df[id] <- lapply(df[id], as.factor)
}
df
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.