Skip to Content

iris {datasets}

Edgar Anderson's Iris Data
Package: 
datasets
Version: 
R 3.0.2

Description

This famous (Fisher's or Anderson's) iris data set gives the measurements in centimeters of the variables sepal length and width and petal length and width, respectively, for 50 flowers from each of 3 species of iris. The species are Iris setosa, versicolor, and virginica.

Usage

iris
iris3

References

Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) The New S Language. Wadsworth & Brooks/Cole. (has iris3 as iris.)

See Also

matplot some examples of which use iris.

Examples

dni3 <- dimnames(iris3)
ii <- data.frame(matrix(aperm(iris3, c(1,3,2)), ncol = 4,
                        dimnames = list(NULL, sub(" L.",".Length",
                                        sub(" W.",".Width", dni3[[2]])))),
    Species = gl(3, 50, labels = sub("S", "s", sub("V", "v", dni3[[3]]))))
all.equal(ii, iris) # TRUE

Documentation reproduced from R 3.0.2. License: GPL-2.

Comments

william2johns's picture

There is a lot of confusion about business letters and many people are not sure exactly what a "business letter" really is. In fact, the term "computer science help" is a very general one that can mean many different specific letter types. This article clears up the confusion.