Skip to contents

Helpers for reading SUBE-style supply-use tables, extracting domestic blocks, and loading the shipped example objects that anchor the package workflow.

Usage

import_suts(path, sheets = c("SUP", "USE"), recursive = FALSE)

extract_domestic_block(data)

sube_example_data(name = c("sut_data", "cpa_map", "ind_map", "inputs", "model_data"))

Arguments

path

Path to an Excel workbook, normalized CSV, or directory of inputs.

sheets

Sheet names to read from workbook inputs.

recursive

Whether to search subdirectories.

data

Imported SUT data.

name

Example dataset name.

Value

`import_suts()` returns a long-form `data.table` with standard SUBE columns. `extract_domestic_block()` returns the domestic subset. `sube_example_data()` returns a small shipped example table.