# inspired by janitor::tabyl(),
# to skip the dependency
tabyl <- function(x) {
dataframe <- tibble::tibble(x = x) %>%
dplyr::count(x) %>%
dplyr::mutate(percent = n / sum(n))
colnames(dataframe) <- c(".", "n", "percent")
dataframe
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.