freqTable: Frequency table and Histogram

Description Usage Arguments Details Value Examples

View source: R/utils.R

Description

freqTable prints a frequency table and histogram of a vector.

Usage

1
freqTable(Value, limit = NULL)

Arguments

Value

a vector of any type

limit

Upper limit of the bars in histogram. Default is NULL, for which the function will automatically find the suitable limit. This value should be in fraction (between 0 to 1)

Details

This function works for all type of vector type. But calling freqTable for vector with many unique values will print a very long table. If the limit parameter is left blank, then the limit of histogram is adjusted automatically and is shown at the end in brackets (eg. 50 This function is used in the explainer.

Value

Prints a table with columns

This table is followed by a histogram with bars for each of the unique values present in the data.

Examples

1
2
freqTable(mtcars$cyl)
freqTable(mtcars$mpg, limit = 0.08)

analyzer documentation built on July 1, 2020, 10:02 p.m.