wu_skim_with: Set or add the summary functions for a particular type of...

View source: R/skimr.R

wu_skim_withR Documentation

Set or add the summary functions for a particular type of data

Description

Build a custom skim function that adds percents to factor summaries

Usage

wu_skim_with(
  fct_n_levels = NULL,
  fct_percents = TRUE,
  fct_digits = 1,
  fct_delimiter = c(", ", "<br>")
)

Arguments

fct_n_levels

number of factor levels to print sorted in descending frequency

fct_percents

flag to print percents per level

fct_digits

number of significant digits to print for factor summaries

fct_delimiter

delimiter to use between factor levels

Value

A new skim() function. This is callable.

Note

NAs are ignored when computing percents.

Examples

wu_skim <- wu_skim_with()
wu_skim(factor(mtcars$cyl))

the-mad-statter/washu documentation built on May 5, 2024, 10:26 a.m.