Skip to contents

Build and validate crossmaps

Coerce links (a data frame or matrix) into a validated xmap_tbl, and check or diagnose validity without necessarily coercing.

as_xmap_tbl() diagnose_as_xmap_tbl()
Coerce links into a crossmap tibble
validate_as_xmap()
Cheaply check whether links form a valid crossmap

Apply crossmaps to data

apply_xmap() diagnose_apply_xmap()
Apply Crossmap Transformation to Conformable Data

Compose crossmaps

Chain two crossmaps sharing an intermediate classification into one.

compose_xmap()
Compose Two Crossmaps Through a Shared Intermediate Classification

Example data

demo
Demo objects for the xmap package
timor_occupn
Timor-Leste census occupation codes
indstat
UNIDO INDSTAT4 industrial statistics (masked), with country lookup

Internal

Internal helpers, not exported for direct use.

new_xmap_diagnosis()
Construct an xmap_diagnosis object
check_valid_xmap_df()
Check whether already-split .from/.to/.weight_by columns form a valid crossmap (internal)
vhas_no_missing() vhas_no_dup_pairs() vhas_valid_weights()
Boolean flags for properties of candidate and validated xmap links (internal)
xmap xmap-package
xmap: Transforming Data Between Statistical Classifications
xmap-rlang
Internal rlang methods
xmap-vctrs
Internal vctrs methods