pretty_IDs: Create Pretty IDs for TG Table

pretty_IDsR Documentation

Create Pretty IDs for TG Table

Description

Replaces ugly ID patterns of a stat block with pretty replacements for display purposes (e.g. NON_MISSING becomes Subject Count for those with Non Missing values)

Usage

pretty_IDs(ID)

Arguments

ID

The ID vector of a TG table

Value

A character vector of pretty IDs.

Examples

# List of patterns that can be replaced
patterns <- c("MEAN", "FREQ", "CHG", "Y_FREQ", "MAX_FREQ", "NON_MISSING", 
              "NESTED_FREQ_DSC", "NESTED_FREQ_ABC")
IDs <- paste(patterns, "of VAR")

IDs
pretty_IDs(IDs)

Biogen-Inc/tidyCDISC documentation built on April 22, 2023, 2:12 p.m.