extract_class_attribute <- function(
data,
n = 1,
prefix = character()
) {
data %>%
class() %>%
`[`(n) %>%
{
if (length(prefix)) {
stringr::str_remove(., prefix)
} else {
.
}
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.