Data Suppression for Low Category Frequencies
suppress.Rd
Mask values/counts below a specified threshold to maintain patient confidentiality.
Examples
df <- data.frame(Counts = c(5, 1, 10, 3, 12, 9, 4))
df$Counts_Suppressed <- suppress(df$Counts, less_than = 5, replace_with = "**")
df
#> Counts Counts_Suppressed
#> 1 5 5
#> 2 1 **
#> 3 10 10
#> 4 3 **
#> 5 12 12
#> 6 9 9
#> 7 4 **