Learn R Programming

REAT (version 1.3.1)

Freiburg1:

Description

Preliminary stage of an interaction matrix: Distance matrix for all 42 statistical districts and all 63 grocery stores (\(i\) = 42 submarkets x \(j\) = 63 suppliers) in Freiburg (Germany) including the size of the grocery stores.

Usage

data("Freiburg1")

Arguments

Format

A data frame with 2646 observations on the following 4 variables.
district
a numeric vector representing the 42 statistical districts of Freiburg
store
a numeric vector identifying the store code of the mentioned grocery store in the study area
salesarea
a numeric vector for the sales area of the grocery stores in sqm
distance
a numeric vector for the distance from the places of residence (statistical districts) to the grocery stores in km

References

Wieland, T. (2015): “Nahversorgung im Kontext raumoekonomischer Entwicklungen im Lebensmitteleinzelhandel - Konzeption und Durchfuehrung einer GIS-gestuetzten Analyse der Strukturen des Lebensmitteleinzelhandels und der Nahversorgung in Freiburg im Breisgau”. Projektbericht. Goettingen : GOEDOC, Dokumenten- und Publikationsserver der Georg-August-Universitaet Goettingen. http://webdoc.sub.gwdg.de/pub/mon/2015/5-wieland.pdf

Examples

Run this code
data(Freiburg1)
# Distance matrix for grocery stores in Freiburg
data(Freiburg2)
# Statistical districts of Freiburg
groceryfr <- huff (Freiburg1, "district", "store", "salesarea", "distance", gamma=1, lambda=-2)
# Huff interaction matrix for given grocery stores in Freiburg
# with standard weighting (power function with gamma=1 and lambda=-2)
groceryfr_total <- huff (Freiburg1, "district", "store", "salesarea", "distance", 
gamma=1, lambda=-2, localmarket_dataset = Freiburg2, origin_id = "district", 
localmarket = "ppower", output="total")
# Calculating total sales of the stores

Run the code above in your browser using DataLab