powered by
Method for dplyr::count()
dplyr::count()
# S3 method for character count(x, sort = FALSE, prop = FALSE)
A tibble of element counts
A character vector.
If TRUE, sort the result so that the most common values float to the top.
TRUE
If TRUE, compute the fraction of marginal table.
x <- sample(LETTERS)[rpois(1000, 10)] table(x) dplyr::count(x) dplyr::count(x, sort = TRUE, prop = TRUE)
Run the code above in your browser using DataLab