R Dataset / Package Stat2Data / Diamonds2


On this R-data statistics page, you will find information about the Diamonds2 data set which pertains to Diamonds2. The Diamonds2 data set is found in the Stat2Data R package. You can load the Diamonds2 data set in R by issuing the following command at the console data("Diamonds2"). This will load the data into a variable called Diamonds2. If R says the Diamonds2 data set is not found, you can try installing the package by issuing this command install.packages("Stat2Data") 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 Diamonds2 R data set. The size of this file is about 10,271 bytes.



A subset of the Diamonds data


A dataset with 307 observations on the following 6 variables.

R project statistics dataset table
Carat Size of the diamond (in carats)
Color Coded as D(most white/bright) through G
Clarity Coded as IF, VVS1, VVS2, VS1, VS2, SI1, SI2, or SI3
Depth Depth (as a percentage of diameter)
PricePerCt Price per carat
TotalPrice Price for the diamond (in dollars)


A subset of the Diamonds data, containing only those with most frequent colors D, E, F, and G. The clarity of the diamonds ranges from IF (internally flawless) through VVS1 (very,very slightly included), VS1 (very slightly included), to SI3 (slightly included) in the order listed above.


Diamond data obtained from AwesomeGems.com on July 28, 2005.


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-stat2data-diamonds2.html" frameBorder="0" width="100%" height="307px" />
Attachment Size
dataset-42310.csv 10.03 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.