format_indicator: Formats PEPFAR indicators for MDB tables

View source: R/format_indicator.R

format_indicatorR Documentation

Formats PEPFAR indicators for MDB tables

Description

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.

Usage

format_indicator(x)

Arguments

x

PEPFAR indicator name as an abbreviation and the full definition

Value

html formatted string that can be rendered in gt

See Also

Other MDB helper functions: calc_growth(), label_aggregation(), make_achv_shape(), make_chg_shape()

Examples

## 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)
 
 

USAID-OHA-SI/selfdestructin5 documentation built on Feb. 23, 2025, 5:08 a.m.