nice_frequencies: Table with frequency statistics

View source: R/nice_frequencies.R

nice_frequenciesR Documentation

Table with frequency statistics

Description

Table with frequency statistics

Usage

nice_frequencies(
  data,
  grouping = NULL,
  label = NULL,
  label_grouping = NULL,
  show_missing = TRUE,
  show_percent = TRUE,
  auto_labels = TRUE,
  title = NULL,
  footnote = NULL,
  file = NULL,
  ...
)

Arguments

data

Vector.

grouping

A grouping variable as a vector.

label

Set label for the variable name.

show_missing

If TRUE, adds a row for the number of missing values.

show_percent

If TRUE, adds a column for percentages.

auto_labels

If TRUE, variable names are taken from a label attribute.

title

Table title.

footnote

Table footnote.

file

Filename.

...

Further arguments passed to nice_table().

Value

An html table with frequencies

Examples

nice_frequencies(wmisc:::mtcars_labeled[[11]])
nice_frequencies(
  wmisc:::mtcars_labeled$cyl, 
  wmisc:::mtcars_labeled$am
)

jazznbass/wmisc documentation built on Jan. 28, 2025, 11:13 p.m.