makeDendrite: Build a list of the mutually exclusive attributes of objects

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/dendrite.R

Description

Build a list of mutually exclusive attributes from a matrix of category indicators.

Usage

1

Arguments

x

A data frame or matrix where rows represent objects and columns mutually exclusive attributes of a given class.

Details

The values in x indicate which attribute of a particular class is possessed by the object. For instance, the attributes dead and alive are mutually exclusive. makeDendrite creates a nested list that contains the counts of successive combinations of the attributes. The top level attributes are taken from the first column, then those are combined with the attributes in the second column and so on.

Value

A list of the counts of objects for each combination of the attribute classes.

Author(s)

Jim Lemon

See Also

plot.dendrite

Examples

1
2
3
4
5
6
 sex<-sample(c("M","F"),100,TRUE)
 hair<-sample(c("Blond","Black","Brown","Red"),100,TRUE)
 eye<-sample(c("Blue","Black","Brown","Green"),100,TRUE)
 charac<-data.frame(sex=sex,hair=hair,eye=eye)
 characlist<-makeDendrite(charac)
 characlist

plotrix documentation built on Dec. 7, 2017, 5:06 p.m.