freq: Frequency table as data.frame

Description Usage Arguments Details Value Examples

View source: R/data_functions.R

Description

Frequency table as data.frame

Usage

1
freq(..., sort = "none")

Arguments

...

One or more objects that can be passed to table()

sort

How the data should be sorted on frequency - ascending, descending or none.

Details

Data.frame output of table with better column names and ability to sort on Freq column. Essentially creates crosstab table in long data format.

Value

Sorted data.frame based either on first object, or by sort option object.

Examples

1
2
freq(iris$Species)
freq(c(1,2,3,1,1,1,1))

andrewjameshaynes/helpeR documentation built on May 28, 2019, 2:44 p.m.