iris.train: Iris Train Data

iris.trainR Documentation

Iris Train 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.train

Format

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

Column name Data type Description Values
[,1] Sepal.Length numeric Sepal length in cm (5.0 - 7.9)
[,2] Sepal.Width numeric Sepal width in cm (2.0 - 3.8)
[,3] Petal.Length numeric Petal length in cm (3.0 - 6.9)
[,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 40 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.test

Examples


# First six rows
head(iris.train)

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


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