redact_tblsummary: Redact tbl_summary object

View source: R/redaction.R

redact_tblsummaryR Documentation

Redact tbl_summary object

Description

Redact tbl_summary object

Usage

redact_tblsummary(x, threshold, redact_chr = NA_character_)

Arguments

x

A tbl_summary object created by the gt package.

threshold

The redaction threshold. All values less than or equal to this threshold will be redacted.

redact_chr

The character string used to replace redacted values. Default is "NA".

Details

This function redacts all statistics based on counts less than the threshold (including means, medians, etc) it also removes potentially disclosive items from the object, namely:

  • x$inputs$data which contains the input data

  • x$inputs$meta_data which contains the raw summary table for the table

Value

A redacted tbl_summary object


wjchulme/osutils documentation built on Dec. 20, 2024, 9:56 a.m.