Skip to contents

Generates the geo crosswalk file for PopulationSim, mapping model geographies for input to the synthetic population engine. Use when preparing Populationsim runs with custom geographies.

Usage

popsim_make_geoxwalk(geo_cross_walk, run_label, settings)

Arguments

geo_cross_walk

data.table. Crosswalk between model geographies.

run_label

character(1). Label for the run, used in output path.

settings

list. Must include 'working_dir'.

Value

NULL. Side effect: writes 'geo_cross_walk.csv' to disk.

Details

  • Drops geometry column if present.

  • Writes crosswalk to PopulationSim data directory.

  • Creates required subdirectories if missing.

  • Assumes input is a data.table or convertible.

Settings

  • working_dir (direct): output directory for PopulationSim files.

See also

popsim_make_input_data, popsim_make_control_config

Other PopulationSim IO: popsim_make_control_config(), popsim_make_input_data(), popsim_make_settings(), popsim_make_weights(), popsim_search(), popsim_search_stats(), popsim_settings_updates()

Examples

## Not run:
popsim_make_geoxwalk(geo_cross_walk, 'run1', settings)
#> Error: object 'settings' not found