R/fcount.R

Defines functions fcount

Documented in fcount

#' Make a sorted frequency table for a factor
#'
#' @param x factor
#'
#' @return A tibble
#' @export
#' @examples
#' fcount(iris$Species)
fcount <- function(x) {
  forcats::fct_count(x, sort = TRUE)
}
randy3k/foofactors documentation built on Feb. 4, 2021, 12:08 a.m.