Learn R Programming

mlbench (version 2.1-7)

Zoo: Zoo Data

Description

A simple dataset containing 17 (mostly logical) variables on 101 animals.

Usage

data("Zoo", package = "mlbench")

Arguments

Format

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.

Details

Ask the original donor of the data why girl is an animal.

References

Blake+Merz:1998

Examples

Run this code
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]

Run the code above in your browser using DataLab