to.numeric <- function(df, id = NULL){
if(is.null(id)){
id <- names(df)
df[id] <- lapply(df[id],
function(x) as.numeric(as.character(x)))
} else {
df[id] <- lapply(df[id],
function(x) as.numeric(as.character(x)))
}
df
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.