freq_table: Helper function for 'qualityCheck'

Description Usage Arguments Value

View source: R/freq_table.R

Description

This function creates a frequency table limited to 'max_length' rows.

Usage

1
freq_table(x, max_length = Inf, cum = FALSE)

Arguments

x

a vector

max_length

the maximum number of rows in the output.

cum

shoulb cumulative frequencies and percentages be given? Default to FALSE

Value

a frequency table with the top 'max_length' most frequent modalities and the associated percentage.


MathieuMarauri/auditdata documentation built on March 6, 2020, 7:09 p.m.