R/fcount.R

Defines functions fcount

Documented in fcount

#' 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
chriszheng2016/Myfoofactors documentation built on May 8, 2020, 1:02 a.m.