suppress_tidy_data: Suppress across multiple categories/groups within a single...

View source: R/suppress_tidy_groups.R

suppress_tidy_dataR Documentation

Suppress across multiple categories/groups within a single dataframe (with some additional options)

Description

This function allows users to suppress across multiple groups in a single data. If you find yourself with a df that contains a column with multiple groups that you'd like to individually suppress on you should use this function. As an example, if you had a table with a region column (LONDON, MIDLANDS, etc) and you needed to suppress on each region individually, you could use this function to shortcut the process.

Usage

suppress_tidy_data(
  df,
  where_to_suppress = c("col"),
  cols_to_suppress,
  groups_to_suppress_across,
  suppression_pre_applied = FALSE,
  suppression_thres,
  suppress_0 = TRUE,
  inc_secondary_suppression = TRUE,
  suppression_output_value = 9999999,
  total_suppression = FALSE,
  indirect_suppression = FALSE,
  secondary_suppress_0 = TRUE
)

moj-analytical-services/mojSuppression documentation built on Aug. 27, 2022, 11:14 p.m.