Learn R Programming

cluster (version 2.1.6)

animals: Attributes of Animals

Description

This data set considers 6 binary attributes for 20 animals.

Usage

data(animals)

Arguments

Format

A data frame with 20 observations on 6 variables:

[ , 1]warwarm-blooded
[ , 2]flycan fly
[ , 3]ververtebrate
[ , 4]endendangered
[ , 5]grolive in groups
[ , 6]haihave hair

All variables are encoded as 1 = 'no', 2 = 'yes'.

Details

This dataset is useful for illustrating monothetic (only a single variable is used for each split) hierarchical clustering.

References

see Struyf, Hubert & Rousseeuw (1996), in agnes.

Examples

Run this code
data(animals)
apply(animals,2, table) # simple overview

ma <- mona(animals)
ma
## Plot similar to Figure 10 in Struyf et al (1996)
plot(ma)

Run the code above in your browser using DataLab