powered by
A single table or two linked tables are found
FindTableGroup( x = NULL, findLinked = FALSE, mainName = TRUE, fCorr = FactorLevCorr(x), CheckHandling = warning )
Matrix or data frame containing the variables
When TRUE, two linked tables can be in output
When TRUE the groupVarInd ouput is named according to first variable in group.
When non-null x is not needed as input.
Function (warning or stop) to be used in problematic situations.
Output is a list with items
List defining the hierarchical variable groups. First variable has most levels.
List containing one or two tables. These tables are coded as indices referring to elements of groupVarInd.
# NOT RUN { 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) FindTableGroup(m) FindTableGroup(m,findLinked=TRUE) # }
Run the code above in your browser using DataLab