#' Title
#'
#' @param .data
#'
#' @return
#' @export
#'
#' @examples
f_melt <- function(.data) {
stopifnot(length(dim(.data)) == 2)
as.data.frame.table(.data, responseName = "value") %>%
mutate_if(is.factor, as.integer)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.