pretty_IDs | R Documentation |
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)
pretty_IDs(ID)
ID |
The ID vector of a TG table |
A character vector of pretty IDs.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.