Learn R Programming

BSDA (version 1.2.0)

Irises: R.A. Fishers famous data on Irises

Description

Data for Examples 1.15 and 5.19

Usage

Irises

Arguments

Format

A data frame/tibble with 150 observations on five variables

sepal_length

sepal length (in cm)

sepal_width

sepal width (in cm)

petal_length

petal length (in cm)

petal_width

petal width (in cm)

species

a factor with levels setosa, versicolor, and virginica

References

Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.

Examples

Run this code
# NOT RUN {
tapply(Irises$sepal_length, Irises$species, mean)
t.test(Irises$sepal_length[Irises$species == "setosa"], conf.level = 0.99)
hist(Irises$sepal_length[Irises$species == "setosa"], 
     main = "Sepal length for\n Iris Setosa",
     xlab = "Length (in cm)")
boxplot(sepal_length ~ species, data = Irises)

# }

Run the code above in your browser using DataLab