prop: Proportion table as data.frame

Description Usage Arguments Details Value Examples

View source: R/data_functions.R

Description

Proportion table as data.frame

Usage

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

Arguments

...

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

sort

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

Details

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

Value

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

Examples

1
2
prop(iris$Species)
prop(iris$Species, iris$Petal.Length)

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