flowstructmat {cartograflow}R Documentation

Structuring a matrix

Description

Fixes an ID shift in the flow matrix (to bo use with flowjointure if necessary and flowtabmat)

Usage

flowstructmat(z)

Arguments

z

The input flow dataset in the matrice format where the first column is filled with the ID

Value

A flow dataset with an usable format

Examples

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

[Package cartograflow version 1.0.5 Index]