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(mtcars[[11]])
nice_frequencies(
  mtcars$cyl, mtcars$am, 
  label = "Cylinders", 
  label_grouping = "Automatic"
)

jazznbass/wmisc documentation built on Oct. 29, 2024, 5:42 p.m.