Extract a classic origin-destination migration flow matrix from a more detailed dis-aggregation of flows stored in an (array
) object.
sum_od(y)
Matrix from summing over the first and second dimension. Set diagonals to zero.
Returns a matrix
object of origin-destination flows
Array of origin-destination matrices, where the first and second dimensions correspond to origin and destination respectively. Higher dimension(s) refer to additional migrant characteristic(s).