fcount: Generate counts on data

View source: R/fcount.R

fcountR Documentation

Generate counts on data

Description

Generate counts on data

Usage

fcount(
  df,
  ...,
  sort = TRUE,
  pct = TRUE,
  round = FALSE,
  denom = "sum",
  pct_formatting = FALSE,
  cum_sum = FALSE,
  cum_prop = FALSE,
  head = NULL
)

Arguments

df

a tibble to count

...

variables to group by

sort

if TRUE will sort output in descending order of n

pct

if TRUE will add percent column

round

if TRUE will round to nearest percent

denom

denominator for calculating percent. If sum then will use sum of n otherwise will use value entered

pct_formatting

should percent formatting be applied

cum_sum

if TRUE will add column for cumulative sum

cum_prop

if TRUE will add column for cumulative percent

head

returns all values by default


scottfrechette/funcyfrech documentation built on Aug. 26, 2022, 9:13 a.m.