| Title: | Dataset for the input-output tables for Japan |
|---|---|
| Description: | More about what it does (maybe more than one line) Use four spaces when indenting paragraphs within the Description. |
| Authors: | Mizuki Uchida [aut, cre] |
| Maintainer: | Mizuki Uchida <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 0.1.0 |
| Built: | 2026-07-14 04:41:44 UTC |
| Source: | https://github.com/UchidaMizuki/econiodatajp |
Get an input-output table
io_table_get( year, region_type = c("regional", "multiregional"), area = "nation", price_type = "producer_price", sector_class = NULL, competitive_import = TRUE, language = NULL )io_table_get( year, region_type = c("regional", "multiregional"), area = "nation", price_type = "producer_price", sector_class = NULL, competitive_import = TRUE, language = NULL )
year |
Year of the data. |
region_type |
Table "shape": '"regional"' for a single-region table (see [econio::io_table_regional()]) or '"multiregional"' for a table with an explicit region dimension covering every prefecture at once (see [econio::io_table_multiregional()]). |
area |
Which area the table covers. '"nation"' (the default), '0', and '"00"' all mean nation-level; any other value is a prefecture, either a numeric prefecture code (e.g. '1', '13') or the code_name fragment used in the archive (e.g. '"01_hokkaido"', '"13_tokyo"'). Must resolve to nation-level when 'region_type = "multiregional"' (that table always covers every prefecture at once — there is no per-prefecture subsetting). |
price_type |
Price basis of the table. Currently only '"producer_price"' is available. |
sector_class |
Sector classification granularity. Defaults to the full choice set ('"basic"', '"small"', '"medium"', '"large"', '"template"') when 'area' is nation-level, or the only available value otherwise ('"medium"' for a prefecture, '"large"' for 'region_type = "multiregional"'). |
competitive_import |
Whether to use the competitive-import convention (matches the 'competitive_import' argument of [econioread::io_table_read_sector_types()]). '"basic"' and '"small"' sector classes are only available when 'TRUE'. Only supported when 'area' is nation-level; 'FALSE' errors otherwise. |
language |
Language of the table's sector names, '"ja"' or '"en"'. Japanese is the authoritative source (sector *type* classification is derived from the Japanese sector classification workbook); English names are pre-translated from it when each tarchive is built (see 'translate_iotable_sector()' in 'inst/tarchives/R/translate.R'), and a sector with no English source name keeps its Japanese name. Defaults to 'NULL', which resolves to '"en"' with a one-time message noting the default. Only supported when 'area' is nation-level; a non-'NULL' value errors otherwise. |
An input-output table object for the specified year.
For use inside a '_targets.R' pipeline, e.g. 'tar_plan(io_table_target(...))'.
io_table_target( name, year, region_type = c("regional", "multiregional"), area = "nation", price_type = "producer_price", sector_class = NULL, competitive_import = TRUE, language = NULL, ... )io_table_target( name, year, region_type = c("regional", "multiregional"), area = "nation", price_type = "producer_price", sector_class = NULL, competitive_import = TRUE, language = NULL, ... )
name |
Symbol, name of the target. |
year |
Year of the data. |
region_type |
Table "shape": '"regional"' for a single-region table (see [econio::io_table_regional()]) or '"multiregional"' for a table with an explicit region dimension covering every prefecture at once (see [econio::io_table_multiregional()]). |
area |
Which area the table covers. '"nation"' (the default), '0', and '"00"' all mean nation-level; any other value is a prefecture, either a numeric prefecture code (e.g. '1', '13') or the code_name fragment used in the archive (e.g. '"01_hokkaido"', '"13_tokyo"'). Must resolve to nation-level when 'region_type = "multiregional"' (that table always covers every prefecture at once — there is no per-prefecture subsetting). |
price_type |
Price basis of the table. Currently only '"producer_price"' is available. |
sector_class |
Sector classification granularity. Defaults to the full choice set ('"basic"', '"small"', '"medium"', '"large"', '"template"') when 'area' is nation-level, or the only available value otherwise ('"medium"' for a prefecture, '"large"' for 'region_type = "multiregional"'). |
competitive_import |
Whether to use the competitive-import convention (matches the 'competitive_import' argument of [econioread::io_table_read_sector_types()]). '"basic"' and '"small"' sector classes are only available when 'TRUE'. Only supported when 'area' is nation-level; 'FALSE' errors otherwise. |
language |
Language of the table's sector names, '"ja"' or '"en"'. Japanese is the authoritative source (sector *type* classification is derived from the Japanese sector classification workbook); English names are pre-translated from it when each tarchive is built (see 'translate_iotable_sector()' in 'inst/tarchives/R/translate.R'), and a sector with no English source name keeps its Japanese name. Defaults to 'NULL', which resolves to '"en"' with a one-time message noting the default. Only supported when 'area' is nation-level; a non-'NULL' value errors otherwise. |
... |
Arguments passed to [tarchives::tar_target_archive()]. |
A target definition object. Users should not modify these directly,
just feed them to list() in your target script file
(default: _targets.R).