brkdnCrawler {plotrix}R Documentation

Crawl a list containing a nested breakdown of numeric values.

Description

Breaks down a numeric element of a data frame by one or more categorical elements.

Usage

 brkdnCrawler(x,errbars=FALSE,
  retval=list(indx=vector("numeric",0),element=NULL,value=NA,depth=0))

Arguments

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.

Details

brkdnCrawler crawls a list produced by brkdn.num and returns the information needed by hierobarp.

Value

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.

Author(s)

Jim Lemon

Examples

 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)

[Package plotrix version 2.5-5 Index]