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. 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


This data set considers 6 binary attributes for 20 animals.




A data frame with 20 observations on 6 variables:

R project statistics dataset table
[ , 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’.


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


Leonard Kaufman and Peter J. Rousseeuw (1990): Finding Groups in Data (pp 297ff). New York: Wiley.


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


apply(animals,2, table) # simple overviewma <- mona(animals)
## Plot similar to Figure 10 in Struyf et al (1996)

Dataset imported from https://www.r-project.org.

Title Authored on Content type
OpenIntro Statistics Dataset - dream August 9, 2020 - 12:25 PM Dataset
OpenIntro Statistics Dataset - winery_cars August 9, 2020 - 2:38 PM Dataset
R Dataset / Package HSAUR / toothpaste March 9, 2018 - 1:06 PM Dataset
R Dataset / Package HSAUR / pottery March 9, 2018 - 1:06 PM Dataset
R Dataset / Package HistData / Guerry March 9, 2018 - 1:06 PM Dataset
<iframe src="https://r-data.pmagunia.com/iframe/r-dataset-package-cluster-animals.html" frameBorder="0" width="100%" height="307px" />
Attachment Size
dataset-65725.csv 361 bytes
Dataset License
GNU General Public License v2.0
Documentation License
GNU General Public License v2.0

This documentation is licensed under GPLv3 or later.