ds_freq_table {descriptr} | R Documentation |
Frequency table
Description
Frequency table for categorical and continuous data and returns the
frequency, cumulative frequency, frequency percent and cumulative frequency
percent. plot.ds_freq_table()
creates bar plot for the categorical
data and histogram for continuous data.
Usage
ds_freq_table(data, variable, bins = 5)
## S3 method for class 'ds_freq_table'
plot(x, print_plot = TRUE, ...)
Arguments
data |
A |
variable |
Column in |
bins |
Number of intervals into which the data must be split. |
x |
An object of class |
print_plot |
logical; if |
... |
Further arguments to be passed to or from methods. |
See Also
Examples
# categorical data
ds_freq_table(mtcarz, cyl)
# barplot
k <- ds_freq_table(mtcarz, cyl)
plot(k)
# continuous data
ds_freq_table(mtcarz, mpg)
# barplot
k <- ds_freq_table(mtcarz, mpg)
plot(k)
[Package descriptr version 0.5.2 Index]