Learn R Programming

BSDA (version 1.01)

Cpi: Consumer price index from 1979 to 1998

Description

Data for Exercise 1.34

Usage

Cpi

Arguments

Format

A data frame with 20 observations on the following 2 variables.

Year

a numeric vector

CPI

a numeric vector

Examples

Run this code
# NOT RUN {
str(Cpi)
attach(Cpi)  
plot(Year,CPI,type="l",lty=2,lwd=2,col="red")   
names(CPI) <- Year
barplot(CPI,col="pink",las=2,main="Problem 1.34")   
detach(Cpi)
# }

Run the code above in your browser using DataLab