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)
}
camadi/foofactorsmoby documentation built on March 2, 2020, 12:15 a.m.