gt_num: Convert output of numeric tabulation (redact_summary_num) to...

View source: R/redaction.R

gt_numR Documentation

Convert output of numeric tabulation (redact_summary_num) to gt object

Description

Convert output of numeric tabulation (redact_summary_num) to gt object

Usage

gt_num(x, var_name = "", num_decimals = 1, pct_decimals = 1)

Arguments

x

The data.frame produced by redact_summary_num

var_name

The variable name

num_decimals

Decimal precision for numbers

pct_decimals

Decimal precision for percentages

Details

This function takes the output of redact_summary_num and converts it to a gt object (as from the gt package) for outputting to html/pdf.

Value

A gt object


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