freq_table: This function creates a frequency table from a vector. The...

Description Usage Arguments Value

View source: R/desc_cat.R

Description

This function creates a frequency table from a vector. The frequency table is ordered and limited to 'length_out' rows and cumulative frequency and percentage can added.

Usage

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

Arguments

x

a vector

length_out

the maximum number of rows in the output, default to Inf

cum

logical, whether to add cumulative frequency and percentage, default to FALSE

Value

a frequency table with the top 'length_out' most frequent modalities and the associated frequency, percentage and possibly cumulative frequency and percentage.


MathieuMarauri/explorer documentation built on Jan. 8, 2020, 6:37 p.m.