#' Make a sorted frequency table for a factor
#'
#' @param x factor
#'
#' @return tibble
#' @export
#'
#' @examples
#' fcount(iris$Species)
fcount <- function(x) { # nocov start
forcats::fct_count(x, sort = TRUE)
} # nocov end
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.