Learn R Programming

adaptr (version 1.4.0)

fmt_pct: Create formatted label with absolute and relative frequencies (percentages)

Description

Used internally.

Usage

fmt_pct(e, n, dec = 1)

Value

Formatted character string.

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.