summary_cat: Summary of categorical variables

View source: R/summary_cat.r

summary_catR Documentation

Summary of categorical variables

Description

Summary statistics for categoric variables.

Usage

summary_cat(x)

Arguments

x

A character vector

Value

A tibble with:

- n: the number of observations;
- na: the number of missing values;
- blank_space: the number of values blank ("");
- n_distinct: the number of distinct levels;
- mode: the mode.

Examples


x <- c(sample(letters,100,replace = TRUE),NA)

x

summary_cat(x)


vbfelix/relper documentation built on Jan. 28, 2025, 12:15 p.m.