uncamel <- function(nms) {
sapply(nms, function(x) {
# first pass: aB -> a_B
x = gsub("([[:lower:]])([[:upper:]])", "\\1_\\2", x)
# second pass: a_B -> a_b
tolower(x)
})
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.