Skip to contents

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)

Arguments

x

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

Value

an ARD data frame of class 'card'

Examples

ard_continuous(ADSL, variables = "AGE") |>
  apply_fmt_fn()
#> {cards} data frame: 8 x 9
#>   variable   context stat_name stat_label   stat stat_fmt
#> 1      AGE continuo…         N          N    254      254
#> 2      AGE continuo…      mean       Mean 75.087     75.1
#> 3      AGE continuo…        sd         SD  8.246      8.2
#> 4      AGE continuo…    median     Median     77     77.0
#> 5      AGE continuo…       p25         Q1     70     70.0
#> 6      AGE continuo…       p75         Q3     81     81.0
#> 7      AGE continuo…       min        Min     51     51.0
#> 8      AGE continuo…       max        Max     89     89.0
#>  3 more variables: fmt_fn, warning, error