type_mysql_toR <- function(x) {
flag = class(x)
res =switch (flag,
character = as.character(x),
integer = as.integer(x),
decimal.Decimal = as.numeric(x)
)
return(res)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.