Learn R Programming

cards (version 0.5.1)

apply_fmt_fn: Apply Formatting Functions

Description

Apply the formatting functions to each of the raw statistics. Function aliases are converted to functions using alias_as_fmt_fn().

Usage

apply_fmt_fn(x, replace = FALSE)

Value

an ARD data frame of class 'card'

Arguments

x

(data.frame)
an ARD data frame of class 'card'

replace

(scalar logical)
logical indicating whether to replace values in the 'stat_fmt' column (if present). Default is FALSE.

Examples

Run this code
ard_continuous(ADSL, variables = "AGE") |>
  apply_fmt_fn()

Run the code above in your browser using DataLab