Skip to contents

Counts from 1 to min_cell - 1 (and the also columns of those rows) become NA, and a suppressed flag is added. A total shown beside suppressed cells can reveal them by subtraction: suppress the total too, or merge the small reasons, when that matters.

Usage

suppress_small_cells(df, count_cols, min_cell, also = NULL)

Arguments

df

A data frame.

count_cols

Names of the count columns.

min_cell

Smallest count that may be shown (0 or 1 suppresses nothing).

also

Further columns to blank in the suppressed rows, such as a percentage.

Value

df with a suppressed column.