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)
}
nashmakh/524-assignment2 documentation built on March 14, 2021, 3:48 p.m.