Skip to contents

Overview

Package overview and scope.

decoupage decoupage-package
decoupage: Delineation of Enumeration Areas and Area Sampling Frames

Inputs

Cut boundary units into blocks along lines, find settlements, measure the size of each unit, and give units to points.

build_blocks()
Build blocks from lines within boundary units
delineate_settlements()
Find settlement patches from building points
measure_units()
Measure the size of each unit from a raster or from points
assign_points()
Assign points to the units that hold them
assign_units()
Give the units of a layer to points

Grouping and cutting

Build the contiguity graph once, group, merge or cut the units at any level, order them, and build the levels above with the same engine.

unit_graph()
Build the contiguity graph of spatial units
group_units()
Group neighboring units within size bounds
split_units()
Split units above a cap into contiguous pieces
dissolve_units()
Dissolve units into one polygon per group
order_units()
Order units so that neighbors on the ground stay close in the order
group_graph()
Build the graph of the groups of a partition

Checks

Check a layer and a grouping, measure groups and their boundaries, and compare a frame with the field.

check_units()
Check a layer of units for defects
check_groups()
Check a grouping for violations of its rules
group_metrics()
Measure the size and shape of each group
graph_lines()
Draw the edges of a unit graph as lines
audit_field()
Compare field data with the frame

Frame updates

Code units, follow them across versions, and carry a frame to new boundaries.

code_units()
Code units in a geographic order
crosswalk_units()
Match the units of two versions of a layer
renest_units()
Re-nest a partition in new boundaries

Simulation

Build a population with a known truth.

sim_territory() sim_households() sim_frame() sim_outcome() sim_frame_defects() sim_population()
Simulate a population and its frames with a known truth
populate_frame() as_population() as_frame()
Start from an existing frame or existing households
population_truth() frame_truth()
Compute the true values of an outcome in a simulated population

Data

yako
Example data for a window north of Yako, Burkina Faso