View source: R/HierarchicalGroups.R
HierarchicalGroups | R Documentation |
According to the (factor) levels of the variables
HierarchicalGroups(
x = NULL,
mainName = TRUE,
eachName = FALSE,
fCorr = FactorLevCorr(x)
)
x |
Matrix or data frame containing the variables |
mainName |
When TRUE output list is named according to first variable in group. |
eachName |
When TRUE variable names in output instead of indices. |
fCorr |
When non-null, x is not needed as input. |
Output is a list containing the groups. First variable has most levels.
Øyvind Langsrud
dataset <- SSBtoolsData("example1")
HierarchicalGroups(dataset[1:2], eachName = TRUE)
HierarchicalGroups(dataset[2:3])
HierarchicalGroups(dataset[1:4], eachName = TRUE)
HierarchicalGroups(SSBtoolsData("magnitude1")[1:4])
x <- rep(c("A","B","C"),3)
y <- rep(c(11,22,11),3)
z <- c(1,1,1,2,2,2,3,3,3)
zy <- paste(z,y,sep="")
m <- cbind(x,y,z,zy)
HierarchicalGroups(m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.