fancy_count {baizer}R 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)

[Package baizer version 0.8.0 Index]