table_fixed_categories | R Documentation |
Generate a table() with a fixed set of categories. It fills up the table with missing categories, that are relevant when comparing to other vectors.
table_fixed_categories(vec, categories_vec, strict = TRUE, v = TRUE)
vec |
Input vector to be counted. |
categories_vec |
Fixed list of categories to be counted in your input vector. |
strict |
Stop or warn if not all values are covered in the categories vector? |
v |
Verbose. Default: TRUE. |
A table with the fixed set of categories.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.