iris.test | R Documentation |
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.
iris.test
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) |
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.
iris.train
# Last six rows
tail(iris.test)
# Scatterplot matrix of the measurements
pairs(iris.test[, -5], col = iris.test[, "Species"])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.