Description Usage Arguments Value
This function allows you to create an Origin/Destination squared matrix from a Origin/Destination long format matrix
1 | cost_matrix(tabcost, idpol, idori, iddes, iddist)
|
tabcost |
A data.frame of flows between origins and destinations (long format matrix containing, at least, 3 column : origins, destinations, flows) |
idpol |
A character vector id spatial units |
idori |
A character string giving the origin field name in tabflows |
iddes |
A character string giving the destination field name in tabflows |
iddist |
A character string giving the flow field name in tabflows |
A squared Origins (rows) and Destination (columns) matrix of flows
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.