
Align an extension table to input-output sector labels.
Source:R/build_footprint.R
align_extension.RdTurn a long-format extension table into the dense per-sector numeric vector
that compute_footprint() expects, ordered to match a single year's
labels from build_io_model(). Sectors absent from the extension are
filled with zero, and extension rows outside the model are dropped. Rows
sharing an (area_code, item_cbs_code) are summed.
Arguments
- extension
Long-format extension tibble with
year,area_code,item_cbs_codeand the column named byvalue_col.- labels
One year's
labelstibble frombuild_io_model(), witharea_code,item_cbs_codeandindexcolumns.- year
Year to select from
extension.- value_col
Name of the extension magnitude column,
"impact_u"by default.