odmatrix_to_od | R Documentation |
This function takes a matrix representing travel between origins
(with origin codes in the rownames
of the matrix)
and destinations
(with destination codes in the colnames
of the matrix)
and returns a data frame representing origin-destination pairs.
odmatrix_to_od(odmatrix)
odmatrix |
A matrix with row and columns representing origin and destination zone codes and cells representing the flow between these zones. |
The function returns a data frame with rows ordered by origin and then destination
zone code values and with names orig
, dest
and flow
.
Other od:
od_id
,
od_to_odmatrix()
x = od_data_df
x[1:3]
odmatrix = od_to_odmatrix(od_data_df)
odmatrix
odmatrix_to_od(odmatrix)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.