flowstructmat {cartograflow} | R Documentation |
Fixes an ID shift in the flow matrix (to bo use with flowjointure if necessary and flowtabmat)
flowstructmat(z)
z |
The input flow dataset in the matrice format where the first column is filled with the ID |
A flow dataset with an usable format
library(cartograflow)
data(flowdata)
dim(mat_ex) # dimension fo the original matrice
### 10 11 # first colum is fill with the ID
tab <- flowstructmat(mat_ex)
dim(tab)
## 10 10 # dimension fo the resulting matrice