Zoo | R Documentation |
A simple dataset containing 17 (mostly logical) variables on 101 animals.
data("Zoo", package = "mlbench")
A data frame with 17 columns: hair, feathers, eggs, milk, airborne, aquatic, predator, toothed, backbone, breathes, venomous, fins, legs, tail, domestic, catsize, type.
Most variables are logical and indicate whether the corresponding
animal has the corresponsing characteristic or not. The only 2
exceptions are: legs
takes
values 0, 2, 4, 5, 6, and 8. type
is a grouping of the animals
into 7 groups, see the example section for the detailed list.
Ask the original donor of the data why girl is an animal.
The original data have been donated by Richard S. Forsyth to the UCI Repository of Machine Learning Databases (Blake & Merz 1998) and were converted to R format by Friedrich Leisch and Evgenia Dimitriadou in the late 1990s.
The current version of the UC Irvine Machine Learning Repository Zoo data set is available from \Sexpr[results=rd]{tools:::Rd_expr_doi("10.24432/C5R59V")}.
Blake, C.L. & Merz, C.J. (1998). UCI Repository of Machine Learning Databases. Irvine, CA: University of California, Irvine, Department of Information and Computer Science. Formerly available from ‘http://www.ics.uci.edu/~mlearn/MLRepository.html’.
data("Zoo", package = "mlbench")
summary(Zoo)
## see the annimals grouped by type
split(rownames(Zoo), Zoo$type)
## which animals have fins?
rownames(Zoo)[Zoo$fins]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.