R Dataset / Package DAAG / milk


On this R-data statistics page, you will find information about the milk data set which pertains to Milk Sweetness Study. The milk data set is found in the DAAG R package. You can load the milk data set in R by issuing the following command at the console data("milk"). This will load the data into a variable called milk. If R says the milk data set is not found, you can try installing the package by issuing this command install.packages("DAAG") and then attempt to reload the data. If you need to download R, you can go to the R project website. You can download a CSV (comma separated values) version of the milk R data set. The size of this file is about 3,647 bytes.

Milk Sweetness Study


The milk data frame has 17 rows and 2 columns. Each of 17 panelists compared two milk samples for sweetness.




This data frame contains the following columns:


a numeric vector consisting of the assessments for four units of additive


a numeric vector while the is the assessment for one unit of additive


J.H. Maindonald


print("Rug Plot - Example 1.8.1")
xyrange <- range(milk)
plot(four ~ one, data = milk, xlim = xyrange, ylim = xyrange, pch = 16)
rug(milk$four, side = 2)
abline(0, 1)

Dataset imported from https://www.r-project.org.

Title Authored on Content type
OpenIntro Statistics Dataset - dream August 9, 2020 - 12:25 PM Dataset
OpenIntro Statistics Dataset - winery_cars August 9, 2020 - 2:38 PM Dataset
R Dataset / Package HSAUR / toothpaste March 9, 2018 - 1:06 PM Dataset
R Dataset / Package HSAUR / pottery March 9, 2018 - 1:06 PM Dataset
R Dataset / Package HistData / Guerry March 9, 2018 - 1:06 PM Dataset
<iframe src="https://r-data.pmagunia.com/iframe/r-dataset-package-daag-milk.html" frameBorder="0" width="100%" height="307px" />
Attachment Size
dataset-33271.csv 3.56 KB
Dataset License
GNU General Public License v2.0
Documentation License
GNU General Public License v2.0

This documentation is licensed under GPLv3 or later.