View source: R/subgroup_consistency_helpers.R
| FS_labels | R Documentation |
Converts q-indexed codes to human-readable labels using the confs_labels mapping. Supports both full format ("q1.1", "q3.0") and short format ("q1", "q3"). Handles vector input via recursion.
FS_labels(Qsg, confs_labels)
Qsg |
Character. Factor code in format |
confs_labels |
Character vector. Labels for each factor, indexed by factor number. |
Character. Human-readable label wrapped in braces, e.g.,
"{age <= 50}" or "!{age <= 50}" for complement. Returns the
original code if no match is found.
## Not run:
labels <- c("age <= 50", "tumor size <= 20", "nodes <= 3")
FS_labels("q1.1", labels)
FS_labels("q1.0", labels)
FS_labels("q2", labels)
FS_labels(c("q1", "q3"), labels)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.