powered by
Creation of a tcmat list object from a given transport costs table
tcmat list
to.tcmat(dataset, colname.from, colname.to, colname.tc)
A data frame containing the transport costs table
data frame
Name of the column containing the origin IDs
Name of the column containing the destination IDs
Name of the column containing the transport costs (e.g. airline distances, travel times)
A tcmat list (invisible) containing the following components:
A data.frame
data.frame
A data.frame containing the transport costs matrix
A list containing information about the transportation costs matrix
list
Creation of a tcmat list object (Transport costs matrix) from a given table for further use in huff and mcimat.create.
huff
mcimat.create
huff, mcimat.create, tcmat.create
tcmat.create
# NOT RUN { data(Haslach_tcmatDrvtime) # Travel times from the Haslach example Haslach_tcmat <- to.tcmat (Haslach_tcmatDrvtime, "from", "to", "tc") # Creating new tcmat object Haslach_tcmat # }
Run the code above in your browser using DataLab