Learn R Programming

cartograflow (version 1.0.0)

flowstructmat: 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 flow dataset is in the matrice format where the first column is filled with the ID

Value

A flowdataset with an usable format

Examples

Run this code
# NOT RUN {
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
# }

Run the code above in your browser using DataLab