count.eda: Convert categorical EDA objects to a table.

View source: R/factor_methods.R

count.edaR Documentation

Convert categorical EDA objects to a table.

Description

converts factor-type EDA objects to a table. For numeric-type ones NULL is returned and a warning generated.

Usage

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

Arguments

x

an EDA object, created by eda.

.drop

logical, should empty levels be dropped?

Value

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


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