View source: R/format_indicator.R
format_indicator | R Documentation |
Formats a string containing the main PEPFAR abbrevation and plain text. The PEPFAR abbreviation is listed first and the plain text in a line below. Used to create the upper portion of the MDB tables.
format_indicator(x)
x |
PEPFAR indicator name as an abbreviation and the full definition |
html formatted string that can be rendered in gt
Other MDB helper functions:
calc_growth()
,
label_aggregation()
,
make_achv_shape()
,
make_chg_shape()
## Not run:
format_indicator("HTS_TST Received HIV testing service and results") %>%
gt::html() %>% htmltools::html_print()
df %>% mutate(indicator2 = format_indicator(indicator2))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.