Learn R Programming

sn (version 2.1.1)

barolo: Price of Barolo wine

Description

A data frame with prices of bottles of Barolo wine and some auxiliary variables

Usage

data(barolo)

Arguments

Format

A data frame with 307 observations on five variables, as follows:

resellerreseller code (factor with levels A, B, C, D)
vintagevintage year (numeric)
volumecontent volume in centilitres (numeric)
priceprice in Euro (numeric)
ageage in 2010 (numeric)

For six items, vintage is NA's and so also age. Three items have a non-standard volume of 50 cl.

Details

The data have been obtained in July 2010 from the websites of four Italian wine resellers, selecting only quotations of Barolo wine, which is produced in the Piedmont region of Italy. The price does not include the delivery charge.

The data have been presented in Section 4.3.2 of the reference below, where a subset of them has been used for illustrative purposes. This subset refers to reseller "A" and bottles of 75cl.

Examples

Run this code
data(barolo)
attach(barolo)  
f <- cut(age, c(0, 5,  6, 8, 11,  30))
table(volume, f)
plot(volume, price, col=as.numeric(f), pch=as.character(reseller))
legend(400, 990, col=1:5, lty=1, title="age class",
       legend=c("4-5", "6", "7-8", "9-11", "12-30"))
#
A75 <- (reseller=="A" & volume==75)
hist(log(price[A75],10), col="gray85")
# see Figure 4.7 of the source

Run the code above in your browser using DataLab