Frequency table for factor data and returns the frequency, cumulative
frequency, frequency percent and cumulative frequency percent.
barplot.ds_freq_table() creates bar plot for the
frequency table created using ds_freq_table().
Usage
ds_freq_table(data, variable)
# S3 method for ds_freq_table
plot(x, ...)
Arguments
data
A data.frame or a tibble.
variable
Column in data.
x
An object of class ds_freq_table.
...
Further arguments to be passed to or from methods.
Value
ds_freq_table returns an object of class "ds_freq_table".
An object of class "ds_freq_table" is a list containing the
following components:
ftable
Frequency table.
Deprecated function
freq_table() has been deprecated. Instead use ds_freq_table().