flowstructmat: Structuring a matrix

Description Usage Arguments Value Examples

View source: R/flowstructmat.R

Description

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

Usage

1

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

1
2
3
4
5
6
7
8
9
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

fbahoken/cartogRaflow documentation built on Oct. 15, 2021, 11:09 a.m.