dominicksData: Get data from the Dominicks dataset

Description Usage Arguments Details References Examples

View source: R/dominicks.R

Description

The Dominicks Scanner data, provided by the University of Chicago Booth School of Business, contains around 5 years of product-level data from over 100 stores, collected from 1989-1994. The data consist of a UPC file that contains information on the products, and a movement file that contains the information on prices and sales. For a complete description of the data, see Dominicks data website and the Dominicks data user manual. This function downloads and merges the movement and UPC files, then merges the result with data detailing the dates of each of the weeks in the movement file.

Usage

1
dominicksData(x, movementcsv = NULL, UPCcsv = NULL)

Arguments

x

the name of the category to retrieve, see details for list.

movementcsv

the path to the movement csv file for one product category. The default is NULL, which downloads the file from the website.

UPCcsv

the path to the UPC csv file for one product category. The default is NULL, which downloads the file from the website.

Details

The following transformations are performed on the data:

If you have already downloaded the movement and UPC csv files for a category from the website, then you can pass the file paths of those files to the function and just have it combine them with the weeks dataset. The default is to download the files for you from the website.

The products available are:

References

James M. Kilts Center, University of Chicago Booth School of Business

Examples

1
2
3
4
## Not run: 
analgesics <- dominicksData("Analgesics")

## End(Not run)

IndexNumR documentation built on Feb. 7, 2022, 5:09 p.m.