mig_tibble: Helper function to format migration input

View source: R/mig_tibble.R

mig_tibbleR Documentation

Helper function to format migration input

Description

Helper function to format migration input

Usage

mig_tibble(m, orig = "orig", dest = "dest", flow = "flow")

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 ensure the correct column names are passed to orig, dest and flow.

orig

Character string of the origin column name (when m is a data frame rather than a matrix)

dest

Character string of the destination column name (when m is a data frame rather than a matrix)

flow

Character string of the flow column name (when m is a data frame rather than a matrix)

Value

Formatted tibble


gjabel/migest documentation built on Feb. 10, 2025, 12:39 p.m.