R Dataset / Package Stat2Data / Diamonds
On this R-data statistics page, you will find information about the Diamonds data set which pertains to Diamonds. The Diamonds data set is found in the Stat2Data R package. You can load the Diamonds data set in R by issuing the following command at the console data("Diamonds"). This will load the data into a variable called Diamonds. If R says the Diamonds 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 with the library() command. 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 Diamonds R data set. The size of this file is about 11,715 bytes.
Diamonds
Description
Diamonds
Format
A dataset with 351 observations on the following 6 variables.
Carat | Size of the diamond (in carats) |
Color | Coded as D (most white/bright) through J |
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) |
Details
Data for a sample of diamonds. 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.
Source
Diamond data obtained from AwesomeGems.com on July 28, 2005.
Dataset imported from https://www.r-project.org.