iris                  package:base                  R Documentation

_E_d_g_a_r _A_n_d_e_r_s_o_n'_s _I_r_i_s _D_a_t_a

_D_e_s_c_r_i_p_t_i_o_n:

     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_.

_U_s_a_g_e:

     data(iris)
     data(iris3)

_F_o_r_m_a_t:

     'iris' is a data frame with 150 cases (rows) and 5 variables
     (columns) named 'Sepal.Length', 'Sepal.Width', 'Petal.Length',
     'Petal.Width', and 'Species'.

     'iris3' gives the same data arranged as a 3-dimensional array of
     size 50 by 4 by 3, as represented by S-PLUS.  The first dimension
     gives the case number within the species subsample, the second the
     measurements with names 'Sepal L.', 'Sepal W.', 'Petal L.', and
     'Petal W.', and the third the species.

_S_o_u_r_c_e:

     Fisher, R. A. (1936) The use of multiple measurements in taxonomic
     problems. _Annals of Eugenics_, *7*, Part II, 179-188.

     The data were collected by Anderson, Edgar (1935). The irises of
     the Gaspe Peninsula, _Bulletin of the American Iris Society_,
     *59*, 2-5.

_R_e_f_e_r_e_n_c_e_s:

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

_S_e_e _A_l_s_o:

     'matplot' some examples of which use 'iris'.

_E_x_a_m_p_l_e_s:

     data(iris3)
     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,lab=sub("S","s",sub("V","v",dni3[[3]]))))
     data(iris)
     all.equal(ii, iris) # TRUE

