fancy_count: fancy count to show an extended column

View source: R/dataframe.R

fancy_countR Documentation

fancy count to show an extended column

Description

fancy count to show an extended column

Usage

fancy_count(df, ..., ext = NULL, ext_fmt = "count", sort = FALSE, digits = 2)

Arguments

df

tibble

...

other arguments from dplyr::count()

ext

extended column

ext_fmt

count|ratio|clean, output format of extended column

sort

sort by frequency or not

digits

if ext_fmt=ratio, the digits of ratio

Value

count tibble

Examples

fancy_count(mini_diamond, cut, ext = clarity)

fancy_count(mini_diamond, cut, ext = clarity, ext_fmt = "ratio")

fancy_count(mini_diamond, cut, ext = clarity, ext_fmt = "clean")

fancy_count(mini_diamond, cut, ext = clarity, sort = FALSE)

fancy_count(mini_diamond, cut, clarity, ext = id) %>% head(5)

baizer documentation built on Oct. 19, 2023, 9:07 a.m.