get_freq_counts <- function(x) {
table(x) %>%
tibble::as_tibble() %>%
dplyr::transmute(k = as.integer(.[[1]]), f_k = as.integer(.[[2]]))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.