Helper function to format migration input
mig_matrix(m, array = TRUE, orig = "orig", dest = "dest", flow = "flow")Formatted matrix
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 ensure the correct column names are passed to orig, dest and flow.
Logical on return of array of all dimensions or origin-destination matrix (summed over all other dimensions)
Character string of the origin column name (when m is a data frame rather than a matrix)
Character string of the destination column name (when m is a data frame rather than a matrix)
Character string of the flow column name (when m is a data frame rather than a matrix)