Description Usage Arguments Value Examples
View source: R/survey_suppress_small_numbers.R
Replaces values that appear fewer than min_n times with "Other (Aggregated)". This ensures that in later summaries, these answers are grouped together. This serves to help prevent statistical disclosure. However, continue to check your outputs for small cells and aggregate up where necessary.
1 | survey_suppress_small_numbers(column, min_n = 10)
|
column |
vector of values to modify |
min_n |
minimum group size to keep |
vector of values with rare values replaced
1 | survey_suppress_small_numbers(c(rep("test", 15), rep("test2", 5), NA), min_n = 10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.