R/formats.R
format_xx.Rd
Translate a string where x and dots are interpreted as number place holders, and others as formatting elements.
format_xx(str)
(string) template.
string
A rtables formatting function.
rtables
test <- list(c(1.658, 0.5761), c(1e1, 785.6)) # Internal function - format_xx if (FALSE) { z <- format_xx("xx (xx.x)") sapply(test, z) z <- format_xx("xx.x - xx.x") sapply(test, z) z <- format_xx("xx.x, incl. xx.x% NE") sapply(test, z) }