fmt_count: Counts and proportions inline

View source: R/inline_fun.R

fmt_countR Documentation

Counts and proportions inline

Description

These functions will give proportions for different variables inline.

Usage

fmt_count(x, ...)

Arguments

x

a data frame

...

an expression or series of expressions to pass to dplyr::filter()

Value

a one-element character vector of the format "n (%)"

Examples


fmt_count(mtcars, cyl > 3, hp < 100)
fmt_count(iris, Species == "virginica")

epikit documentation built on Feb. 16, 2023, 7:42 p.m.