Description Usage Arguments Details Examples
freq_by
creates frequency and percentage tables in HTML.
1 2 |
dataset |
A dataset |
var_vector |
A character vector containing names of the columns in the input dataset to calculate frequencies and percentages for. |
by_group |
A string referring to a factor column in the input dataset by which to stratify the calculations. |
include_total |
whether to include frequencies and percentages not
stratified by the |
htmlout |
Whether to output to html (default and intended usage), or as r-dataframe. |
The output is a table in HTML which can be viewed in a browser or included in a knitr-report.
1 2 | # Outputs HTML:
output <- freq_by(example_data, c("cut", "color"), "clarity")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.