Learn R Programming

Lock5withR (version 1.2.2)

RetailSales: Retail Sales

Description

Monthly U.S. Retail Sales (in billions)

Arguments

Format

A data frame with 144 observations on the following 3 variables.
  • Month Month of the year
  • Year Year (from 2002 to 2011)
  • Date Date in date format (day of month is meaningless)
  • Sales U.S. retail sales (in billions of dollars)

Details

Data show the monthly retail sales (in billions) for the U.S. economy in each month from 2002 through 2011.

Examples

Run this code

data(RetailSales)
if (require(lattice)) {
  xyplot(Sales ~ Date, RetailSales, type='l')
  xyplot(Sales ~ Date, RetailSales, type='l', groups=Month)
}

Run the code above in your browser using DataLab