frequency.eda: Count observations categorical EDA objects to a table.

View source: R/factor_methods.R

frequency.edaR Documentation

Count observations categorical EDA objects to a table.

Description

counts of observations assigned to each category or occurrence of unique values for numeric EDAs.

Usage

## S3 method for class 'eda'
frequency(x, .drop = FALSE)

Arguments

x

an EDA object, created by eda.

.drop

logical, should empty levels be dropped?

Details

NAs are listed as a separate category and empty levels are not skipped by default.

Value

a tibble with the columns 'category', 'n', 'fraction' and 'percent'.


PiotrTymoszuk/ExDA documentation built on Nov. 17, 2024, 5:46 p.m.