Create a format that combines multiple values (e.g., "n (pct%)").
Examples
if (FALSE) { # \dontrun{
fmt <- composite_format(
"{n} ({pct}%)",
n = "a",
pct = "xx.x"
)
apply_composite(fmt, n = 15, pct = 23.456) # "15 (23.5%)"
} # }
Create a format that combines multiple values (e.g., "n (pct%)").
if (FALSE) { # \dontrun{
fmt <- composite_format(
"{n} ({pct}%)",
n = "a",
pct = "xx.x"
)
apply_composite(fmt, n = 15, pct = 23.456) # "15 (23.5%)"
} # }