fmt_pct: Create formatted label with absolute and relative frequencies...

View source: R/utils.R

fmt_pctR Documentation

Create formatted label with absolute and relative frequencies (percentages)

Description

Used internally.

Usage

fmt_pct(e, n, dec = 1)

Arguments

e

integer, the numerator (e.g., the number of events).

n

integer, the denominator (e.g., the total number of patients).

dec

integer, the number of decimals for the percentage.

Value

Formatted character string.


INCEPTdk/adaptr documentation built on May 7, 2024, 8:21 a.m.