View source: R/extractVariableGroups.R
extractVariableGroups | R Documentation |
Groups variable names by summation groups based on the |+| separators given in the variable names. If no |+| are present the function will try to derive summation groups based on | separators.
extractVariableGroups(x, keepOrigNames = FALSE, sorted = FALSE)
x |
a vector of variable names |
keepOrigNames |
if set, the returned list contains the original variables (to the value of which the grouped ones have to sum up) as names instead of made up group names, if they exist. |
sorted |
boolean, indicating whether the variables within each group should be returned alp |
a named list of variable groups with group name as name and vector of entities as content
Anastasis Giannousakis, David Klein, Jan Philipp Dietrich
plotstyle.add
x <- c("a|+|1|+|aa","a|+|2|abc","a|+|1|+|bb","a|+|1|+|cc","a|+|3|+|aa","a|+|3|+|bb")
mip::extractVariableGroups(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.