R Dataset / Package cluster / animals
On this R-data statistics page, you will find information about the animals data set which pertains to Attributes of Animals. The animals data set is found in the cluster R package. You can load the animals data set in R by issuing the following command at the console data("animals"). This will load the data into a variable called animals. If R says the animals data set is not found, you can try installing the package by issuing this command install.packages("cluster") and then attempt to reload the data with the library() command. If you need to download R, you can go to the R project website. You can download a CSV (comma separated values) version of the animals R data set. The size of this file is about 361 bytes.
Attributes of Animals
Description
This data set considers 6 binary attributes for 20 animals.
Usage
data(animals)
Format
A data frame with 20 observations on 6 variables:
[ , 1] | war | warm-blooded |
[ , 2] | fly | can fly |
[ , 3] | ver | vertebrate |
[ , 4] | end | endangered |
[ , 5] | gro | live in groups |
[ , 6] | hai | have 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.
Source
Leonard Kaufman and Peter J. Rousseeuw (1990): Finding Groups in Data (pp 297ff). New York: Wiley.
References
see Struyf, Hubert & Rousseeuw (1996), in agnes
.
Examples
data(animals) apply(animals,2, table) # simple overviewma <- mona(animals) ma ## Plot similar to Figure 10 in Struyf et al (1996) plot(ma)
Dataset imported from https://www.r-project.org.