extractVariableGroups: extractVariableGroups

View source: R/extractVariableGroups.R

extractVariableGroupsR Documentation

extractVariableGroups

Description

Groups variable names by groups based on the |+| separators given in the variable names

Usage

extractVariableGroups(x)

Arguments

x

a vector of variable names

Value

a data frame with variables and corresponding groups as columns.

Author(s)

Jan Philipp Dietrich

See Also

plotstyle.add

Examples

x <- c("a|+|1|+|aa","a|+|2|abc","a|+|1|+|bb","a|+|1|+|cc","a|+|3|+|aa","a|+|3|+|bb","b|2")
shinyresults:::extractVariableGroups(x)

pik-piam/shinyresults documentation built on April 14, 2025, 4:07 a.m.