brkdnCrawler {plotrix} | R Documentation |
Breaks down a numeric element of a data frame by one or more categorical elements.
brkdnCrawler(x,errbars=FALSE, retval=list(indx=vector("numeric",0),element=NULL,value=NA,depth=0))
x |
The output of brkdn.num. |
errbars |
Whether to include the second row of x (the dispersion) in the calculation of the maximum value. |
retval |
A list containing useful information about the list. |
brkdnCrawler crawls a list produced by brkdn.num and returns the information needed by hierobarp.
A list containing the indices of the list element that is not itself a list with the largest numeric value. That element should be a matrix of summary results produced by brkdn.num. The list also contains the matrix, the above value, and the maximum depth of the list.
Jim Lemon
test.df<-data.frame(Age=rnorm(100,25,10), Sex=sample(c("M","F"),100,TRUE), Marital=sample(c("M","X","S","W"),100,TRUE), Employ=sample(c("FT","PT","NO"),100,TRUE)) test.brk<-hierobrk(formula=Age~Sex+Marital+Employ,data=test.df) brkdnCrawler(test.brk)