Calculate counterstream and stream net migration
net_stream(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.
A tibble
with columns for orig, destination, corridor, stream, countersteam and net stream in each pair (corridor)