iris.test: Iris Test Data

iris.testR Documentation

Iris Test Data

Description

This data set is a subset of the iris data set: Edgar Anderson's Iris Data. The length and width of the sepal and petal was measured for different species of the iris plant.

Usage

iris.test

Format

A data frame with 20 observations (rows) and 5 variables (columns).

Column name Data type Description Values
[,1] Sepal.Length numeric Sepal length in cm (4.9 - 7.6)
[,2] Sepal.Width numeric Sepal width in cm (2.3 - 3.6)
[,3] Petal.Length numeric Petal length in cm (3.3 - 6.6)
[,4] Petal.Width numeric Petal width in cm (1.0 -2.5)
[,5] Species factor The iris species (versicolor, virginica)

Details

The sepal and petal make up the perianth of the flower (floral envelope). The sepal is the outermost whorl of the flower, while the petal is the inner whorl.

In this subset there are only 10 observations each of two of the three species from the original data set (versicolor and virginica). iris.train can be used to train a classification model, before iris.test is used to evaluate this classifier.

See Also

iris.train

Examples


# Last six rows
tail(iris.test)

# Scatterplot matrix of the measurements
pairs(iris.test[, -5], col = iris.test[, "Species"])


thoree/stat340 documentation built on June 30, 2024, 4:04 p.m.