Learn R Programming

migest (version 1.8.5)

net_stream: Calculate counterstream and stream net migration

Description

Calculate counterstream and stream net migration

Usage

net_stream(m)

Arguments

m

A matrix or data frame of origin-destination flows. For matrix the first and second dimensions correspond to origin and destination respectively. For a data frame the first and second columns correspond to origin and destination respecivly. The third column contains the number of migraitons or migrants.

Value

A tibble with columns for orig, destination, corridor, stream, countersteam and net stream in each pair (corridor)