create_table generates a frequency distribution table from a vector,
list or data frame input.
Vector, list or data frame input. If the source is of class
list, it will be simplified to a vector using
Number of positions to return in the frequency and cumulative frequency variables. Defaults to two positions following the decimal.
create_table returns a data frame that includes five variables:
group, count, frequency, cumulative count and cumulative frequency.
A data frame containing the frequency distribution table. If an error or warning occurs, a message will be printed to the console and the function will return NULL.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.