Description Usage Arguments Details Value Author(s) See Also Examples
Creation of a tcmat list
object from a given transport costs table
1 | to.tcmat(dataset, colname.from, colname.to, colname.tc)
|
dataset |
A |
colname.from |
Name of the column containing the origin IDs |
colname.to |
Name of the column containing the destination IDs |
colname.tc |
Name of the column containing the transport costs (e.g. airline distances, travel times) |
Creation of a tcmat list
object (Transport costs matrix) from a given table for further use in huff
and mcimat.create
.
A tcmat list
(invisible) containing the following components:
coords_origins |
A |
coords_destinations |
A |
tcmat |
A |
tc.mode |
A |
Thomas Wieland
huff
, mcimat.create
, tcmat.create
1 2 3 4 5 | data(Haslach_tcmatDrvtime)
# Travel times from the Haslach example
Haslach_tcmat <- to.tcmat (Haslach_tcmatDrvtime, "from", "to", "tc")
# Creating new tcmat object
Haslach_tcmat
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.