fmt_decimal: Rounding with decimal digits in the 'fmt' argument

View source: R/fmt_factory.R

fmt_decimalR Documentation

Rounding with decimal digits in the fmt argument

Description

Rounding with decimal digits in the fmt argument

Usage

fmt_decimal(digits = 3, pdigits = NULL, ...)

Arguments

digits

Number of decimal digits to keep, including trailing zeros.

pdigits

Number of decimal digits to keep for p values. If NULL, the value of digits is used.

...

Additional arguments are passed to the format() function (e.g., big.marks, scientific). See ?format


vincentarelbundock/gtsummary documentation built on Nov. 6, 2024, 11:07 p.m.