total_tax_add {iotables} | R Documentation |
Summarize and add tax data
Description
Create and add a total tax row, if there are multiple tax rows
present in the data_table
.
Usage
total_tax_add(
data_table,
tax_names = c("d21x31", "d29x39"),
total_tax_name = "TOTAL_TAX"
)
Arguments
data_table |
A SIOT, a use table, a supply table, or a margins table that has product and production tax rows in among the primary inputs. |
tax_names |
Defaults to |
total_tax_name |
Defaults to |
Value
A data frame with the vector of multipliers and the an auxiliary metadata column (for joining with other matrixes.)
See Also
Other iotables processing functions:
conforming_vector_create()
,
household_column_get()
,
iotable_year_get()
,
key_column_create()
,
matrix_round()
,
output_get()
,
primary_input_get()
,
rows_add()
,
supplementary_add()
,
vector_transpose_longer()
,
vector_transpose_wider()
Examples
de_io <- iotable_get()
total_tax_add (de_io,
tax_names = c("net_tax_products", "net_tax_production"),
total_tax_name = "total_tax")