describe_cat: Describe categorical variable

View source: R/describe.R

describe_catR Documentation

Describe categorical variable

Description

Describe categorical variable

Usage

describe_cat(data, var, n, max_cat = 10, out = "text", margin = 0)

Arguments

data

A dataset

var

Variable or variable name

n

Weights variable for count-data

max_cat

Maximum number of categories displayed

out

Output format ("text"|"list"|"tibble"|"df")

margin

Left margin for text output (number of spaces)

Value

Description as text or list

Examples

describe_cat(iris, Species)

explore documentation built on Sept. 11, 2024, 7:40 p.m.