redacted_summary_cat | R Documentation |
Summarise a categorical variable and redact if necessary
redacted_summary_cat(
x,
threshold = 5L,
precision = 1L,
.missing_name = "(missing)",
.redacted_name = "redacted"
)
x |
The vector to summarise and redact. |
threshold |
The redaction threshold. All values less than or equal to this threshold will be redacted (and possibly more; see the |
precision |
The precision of any rounding that is to be applied to frequency values. Defaults to 1 (no rounding). |
.missing_name |
The string used to replace |
.redacted_name |
The string used to replace redacted values. |
This function takes a categorical vector (or something that can be coerced to a categorical vector), computes value frequencies and proportions, and redacts according to the rules in redactor
.
A table of redacted frequencies and proportions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.