R Dataset / Package DAAG / milk


On this Picostat.com 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
R Dataset / Package psych / bfi March 9, 2018 - 1:06 PM Dataset
OpenIntro Statistics Dataset - scotus_healthcare August 9, 2020 - 2:38 PM Dataset
R Dataset / Package psych / withinBetween March 9, 2018 - 1:06 PM Dataset
R Dataset / Package Stat2Data / Kids198 March 9, 2018 - 1:06 PM Dataset
R Dataset / Package Ecdat / Wages1 March 9, 2018 - 1:06 PM Dataset
Attachment Size
dataset-33271.csv 3.56 KB
Dataset License
GNU General Public License v2.0
Documentation License
GNU General Public License v2.0