data(ce)
# Loads the data
mci.transmat (ce, "origin_code", "store_code", "ms_obs", "traveltime", "salesarea",
"conc_all", "conc_comp")
# Output: submarkets (origins), store codes and transformations
# of "ms_obs", "traveltime", "salesarea", "conc_all" and "conc_comp"
transf_mcimat <- mci.transmat (ce, "origin_code", "store_code", "ms_obs", "traveltime",
"salesarea", "conc_all", "conc_comp")
# Save in a new data frame called "transf_mcimat"Run the code above in your browser using DataLab