flowstructmat: Structuring a matrix

View source: R/flowstructmat.R

flowstructmatR 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

cartograflow documentation built on Oct. 18, 2023, 1:07 a.m.